linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* visual representation of swap area allocation
@ 2005-05-25 15:59 Marcelo Tosatti
  0 siblings, 0 replies; only message in thread
From: Marcelo Tosatti @ 2005-05-25 15:59 UTC (permalink / raw)
  To: akpm, Hugh Dickins; +Cc: linux-mm

[-- Attachment #1: Type: text/plain, Size: 897 bytes --]


Hi,

Due to personal interest, I've hacked up a small program to generate a 
visual representation of swap area allocation. Results are quite
interesting to me, so I've decided to share them with you.

Test program is memtest's "fillmem" (on a 512/512 mem/swap machine).

kernel is 2.6.11-rc4.

stock_second_stage.png: stock allocator after fillmem's first stage
akpm_first_stage.png: akpm's
stock_first_stage.png: stock allocator after fillmem's second stage
akpm_second_stage.png: akpm's

"Legend": 
White: free
Red: used
Black: past end of area

I wonder about the noticeable periodic white regions on akpm's allocator,
my guess is that its due to "properties" of the hash function. Collisions 
could explain that ? Note there is a matching red region for each white 
region. 

There is no noticeable performance difference between the two allocators 
with the "fillmem" workload on my tests.

[-- Attachment #2: akpm_first_stage.png --]
[-- Type: image/png, Size: 2008 bytes --]

[-- Attachment #3: akpm_second_stage.png --]
[-- Type: image/png, Size: 2246 bytes --]

[-- Attachment #4: stock_first_stage.png --]
[-- Type: image/png, Size: 526 bytes --]

[-- Attachment #5: stock_second_stage.png --]
[-- Type: image/png, Size: 1705 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-25 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-25 15:59 visual representation of swap area allocation Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox