linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* swapping and the value of /proc/sys/vm/swappiness
@ 2004-09-06 19:11 Ray Bryant
  2004-09-06 20:10 ` Andrew Morton
                   ` (2 more replies)
  0 siblings, 3 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-06 19:11 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Kernel Mailing List, linux-mm, Rik van Riel, Nick Piggin,
	Martin J. Bligh, Con Kolivas

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

Andrew (et al),

The attached results started as an exercise to try to understand what value of 
"swappiness" we should be recommending to our Altix customers when they start 
running Linux 2.6 kernels.  The benchmark is very simple -- a task first 
mallocs around 90% of memory, touches all of the memory, then sleeps forever.
After the task begins to sleep, we start up a bunch of "dd" copies.  When the 
dd's all complete, we record the amount of swap used, the size of the page 
cache, and the data rates for the dd's.  (Exact details are given in the 
attachment.)  The benchmark was repeated for swappiness values of 0, 20, 40, 
60, 80, 100, for a number of recent 2.6 kernels.

What is unexpected is that the amount of swap space used at a particular
swappiness setting varies dramatically with the kernel version being tested, 
in spite of the fact that the basic swap_tendency calculation in 
refile_ianctive_zone() is unchanged.  (Other, subtle changes in the vm as a 
whole and this routine in particular clearly effect the impact of that 
computation.)

For example, at a swappiness value of 0, Kernel 2.6.5 swapped out 0 bytes,
whereas Kernel 2.6.9-rc1-mm3 swapped out 10 GB.  Similarly, most kernels
have a significant change in behavior for swappiness values near 100, but
for SLES9 the change point occurs at swappness=60.

A scan of the change logs for swappiness related changes shows nothing that 
might explain these changes.  My question is:  "Is this change in behavior
deliberate, or just a side effect of other changes that were made in the vm?" 
and "What kind of swappiness behavior might I expect to find in future kernels?".

Lots more detail is in the attachment.
-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

[-- Attachment #2: swappiness_report.out --]
[-- Type: text/plain, Size: 7292 bytes --]

Swappiness Tests
----------------

The following was the result of attempt to quantify what swappiness
values people should be using on Altix.  As can be seen from the
tables, swappiness seems to have undergone a minor change in meaning or
implementation between kernel 2.6.6 and 2.6.7, with some minor changes
in behavior after that.

The benchmark was to do the following:

(1)  Malloc and touch around 90% of memory.  (The test system has
     29.4 GB of RAM, of which 27.7 were "free" after system boot.
     The test program malloc'd 25.3 GB, leaving 2.4 GB free, or
     8.6% memory free.)  Once the memory has been touched, the
     malloc program sleeps forever, not touching the memory again.
(2)  Start up 8 dd copies, copying around 17 GB of data from /dev/zero
     to a disk file; each dd was targeted to a different physical
     disk.
(3)  When the dd's completed, record the amount of swap used and
     the amount of page cache used.  Also record the run times (
(4)  Kill off the malloc process, remove the dd output files, clear
     swap by swapon/swapoff.   (Removing the files frees up any
     remaining buffer cache associated with those files.)
(5)  Repeat above so that we have 5 trials of each case.

The test system was a 32 CPU Altix system.

The benchmarks were repeated for swappiness values of 0, 20, 40, 60,
80, and 100.  The tests are moderately time consuming, so that 
limited the number of swappiness values that could be benchmarked.

The tables below show total I/O rate in MB/s for the dd commands,
avg swap (of the 5 trials), min and max observed swap, average page
cache size, min and max page cache size (all of the latter are in MB).
Also, as a general rule, the data shows it is better from an I/O
bandwidth standpoint to run with a smaller page cache and not allow
swapping to occur.

Here is a discussion of the results in the tables:

(1)  2.6.5 and 2.6.6:  These two kernels behave about the same, with
     practically nothing swapped out until swappiness is 100, at which
     point the entire malloc'd area is swapped out.  The I/O rate
     for 2.6.6 is significantly below that of SLES9.

(2)  2.6.5-7.97-default (SLES9)  Swaps nothing until swappiness is >=60
     at which point all of the malloc'd area is swapped out.  I/O rate
     is high until swapping starts.   This kernel is the only one
     tested fow which the swappiness change point was swappiness=60
     instead of swappiness=100.

(3)  2.6.7:  Avg swapout is 1600-1900 MB for all values of swappiness
     below 100, but there is wide variation in the trials (see the
     max and min values).  Max I/O rate is significantly better than
     for previous kernels.  At swappiness of 100, entire malloc'd
     area is swapped out.

(4)  2.6.8.1-mm4: much like 2.6.7, except the average swap is smaller
     below swappiness of 100.  I/O rate is similar to that of 2.6.7.
     Still significant variations among the trials, but not quite as
     severe as 2.6.7.

(5)  2.6.9-rc1-mm3:  Well, it almost looks as if the swappiness code
     is broken in this version.  Even for swappiness of 0, it swaps
     out 10 GB worth of data.  Can this be right?

A comparison of the refill_inactive_zone() routines from the above
kernel versions shows that there are subtle differences in the scanning
loop, but that the base calculation for swap_tendency (and hence for
the influence of swappiness on the decision to set reclaim_mapped) are
the same.

Scanning the changelogs for swappiness doesn't bring up any changes,
so I wonder if this change was deliberate or inadvertent?

So my question is, is all of this intended, and which variation of
swappiness behavior is the one I should expect in future kernels?

Kernel Version 2.6.5:
        Total I/O   Avg Swap   min    max     pg cache    min    max
       ----------- --------- ------- ------  --------- ------- -------
   0   279.56 MB/s      0 MB (     0,     0)   3121 MB (  3009,  3233)
  20   273.99 MB/s      0 MB (     0,     0)   3060 MB (  3024,  3104)
  40   285.12 MB/s      0 MB (     0,     0)   2996 MB (  2945,  3057)
  60   289.46 MB/s    115 MB (    62,   185)   3120 MB (  3056,  3167)
  80   288.58 MB/s    103 MB (    68,   212)   3181 MB (  3104,  3265)
 100   151.31 MB/s  25513 MB ( 25380, 25699)  27760 MB ( 27569, 28093)

Kernel Version 2.6.5-7.97-default (SLES9):
        Total I/O   Avg Swap   min    max     pg cache    min    max
       ----------- --------- ------- ------  --------- ------- -------
   0   273.57 MB/s      0 MB (     0,     0)   3191 MB (  3168,  3229)
  20   273.75 MB/s      0 MB (     0,     0)   3151 MB (  3088,  3180)
  40   273.52 MB/s      0 MB (     0,     0)   3096 MB (  3076,  3124)
  60   229.01 MB/s  23068 MB ( 22042, 24195)  25564 MB ( 24578, 26689)
  80   195.63 MB/s  25587 MB ( 25227, 25815)  28046 MB ( 27681, 28260)
 100   184.30 MB/s  26006 MB ( 26006, 26006)  28388 MB ( 28349, 28434)

Kernel Version 2.6.6:
        Total I/O   Avg Swap   min    max     pg cache    min    max
       ----------- --------- ------- ------  --------- ------- -------
   0   242.47 MB/s      0 MB (     0,     0)   3195 MB (  3138,  3266)
  20   256.06 MB/s      0 MB (     0,     0)   3170 MB (  3074,  3234)
  40   267.29 MB/s      0 MB (     0,     0)   3189 MB (  3137,  3234)
  60   289.43 MB/s    666 MB (    72,  1680)   3847 MB (  3296,  4817)
  80   286.49 MB/s    170 MB (    86,   393)   3211 MB (  2897,  3618)
 100   154.87 MB/s  24663 MB ( 24320, 25054)  26708 MB ( 26274, 27154)

Kernel Version 2.6.7:
        Total I/O   Avg Swap   min    max     pg cache    min    max
       ----------- --------- ------- ------  --------- ------- -------
   0   287.52 MB/s   1688 MB (  1590,  2069)   4966 MB (  4819,  5363)
  20   289.80 MB/s   1838 MB (    25,  3741)   5081 MB (  3265,  6932)
  40   290.39 MB/s   1970 MB (  1593,  3453)   5270 MB (  4899,  6660)
  60   290.25 MB/s   1271 MB (     4,  1591)   4559 MB (  3297,  4915)
  80   288.89 MB/s   1599 MB (     6,  3220)   4876 MB (  3345,  6436)
 100   158.67 MB/s  25768 MB ( 25474, 26004)  28363 MB ( 27968, 28753)

Kernel Version 2.6.8.1-mm4:
        Total I/O   Avg Swap   min    max     pg cache    min    max
       ----------- --------- ------- ------  --------- ------- -------
   0   287.28 MB/s    710 MB (    46,  3060)   4082 MB (  3426,  6308)
  20   288.05 MB/s    508 MB (    94,  1417)   3848 MB (  3442,  4739)
  40   287.03 MB/s    588 MB (   199,  1251)   3909 MB (  3570,  4515)
  60   290.08 MB/s    640 MB (   210,  1190)   3976 MB (  3538,  4531)
  80   287.73 MB/s    693 MB (   316,  1195)   4049 MB (  3713,  4545)
 100   166.17 MB/s  26001 MB ( 26001, 26002)  28798 MB ( 28740, 28852)

Kernel Version 2.6.9-rc1-mm3:
        Total I/O   Avg Swap   min    max     pg cache    min    max
       ----------- --------- ------- ------  --------- ------- -------
   0   274.80 MB/s  10511 MB (  5644, 14492)  13293 MB (  8596, 17156)
  20   267.02 MB/s  12624 MB (  5578, 16287)  15298 MB (  8468, 18889)
  40   267.66 MB/s  13541 MB (  6619, 17461)  16199 MB (  9393, 20044)
  60   233.73 MB/s  18094 MB ( 16550, 19676)  20629 MB ( 19103, 22192)
  80   213.64 MB/s  20950 MB ( 15844, 22977)  23450 MB ( 18496, 25440)
 100   164.58 MB/s  26004 MB ( 26004, 26004)  28410 MB ( 28327, 28455)


^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 19:11 swapping and the value of /proc/sys/vm/swappiness Ray Bryant
@ 2004-09-06 20:10 ` Andrew Morton
  2004-09-06 21:22   ` Ray Bryant
  2004-09-06 22:48 ` William Lee Irwin III
  2004-09-06 23:09 ` Con Kolivas
  2 siblings, 1 reply; 46+ messages in thread
From: Andrew Morton @ 2004-09-06 20:10 UTC (permalink / raw)
  To: Ray Bryant; +Cc: linux-kernel, linux-mm, riel, piggin, mbligh, kernel

Ray Bryant <raybry@sgi.com> wrote:
>
> A scan of the change logs for swappiness related changes shows nothing that 
>  might explain these changes.  My question is:  "Is this change in behavior
>  deliberate, or just a side effect of other changes that were made in the vm?" 

It'll be accidental side-effects arising from changes to other parts of the
page reclaim code.

>  and "What kind of swappiness behavior might I expect to find in future kernels?".

Hopefully very little.  Unless we choose to deliberately change the swapout
behaviour.  The code in there is complex and as you've seen, has surprising
interactions.  And changes have been made without sufficiently broad testing.

So I'll be setting the bar much higher for changes to vmscan.c.  It takes a
*lot* of work to demonstrate that a change in there does what it's supposed
to do without breaking other things.


That being said, your tests are interesting.  There's a wide spread of
results across different kernel versions and across different swappiness
settings.  But the question is: which behaviour is correct for your users,
and why?


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 20:10 ` Andrew Morton
@ 2004-09-06 21:22   ` Ray Bryant
  2004-09-06 21:36     ` Andrew Morton
  2004-09-06 22:37     ` William Lee Irwin III
  0 siblings, 2 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-06 21:22 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, linux-mm, riel, piggin, mbligh, kernel


Andrew Morton wrote:

> 
> That being said, your tests are interesting.  There's a wide spread of
> results across different kernel versions and across different swappiness
> settings.  But the question is: which behaviour is correct for your users,
> and why?
> 

Andrew,

Behavior more like that of 2.6.5 and 2.6.6 is what we would like to see, I 
think.  We have had problems in the past with a single large HPC application 
that runs for a long time then wants to push its data out quickly.  What 
happens to us in 2.4.21 is that the page cache pages swap out the user pages, 
and that is somethine we would like to avoid, since it can reduce the data
rate significantly.

We were planning on suggesting that such users set swappiness=0 to give
user pages priority over the page cache pages.  But it doesn't look like that 
works very well in the more recent kernels.

One (perhaps) desirable feature would be for intermediate values of swappiness 
to have behavior in between the two extremes (mapped pages have higher 
priority vs page cache pages having priority over unreferenced mapped pages),
so that one would have finer grain control over the amount of swap used.  I'm 
not sure how to achieve such a goal, however.  :-)

On a separate issue, the response to my proposal for a mempolicy to control
allocation of page cache pages has been <ahem> underwhelming.

(See: http://marc.theaimsgroup.com/?l=linux-mm&m=109416852113561&w=2
  and  http://marc.theaimsgroup.com/?l=linux-mm&m=109416852416997&w=2 )

I wonder if this is because I just posted it to linux-mm or its not fleshed 
out enough yet to be interesting?

Thanks,
-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 21:22   ` Ray Bryant
@ 2004-09-06 21:36     ` Andrew Morton
  2004-09-06 22:37     ` William Lee Irwin III
  1 sibling, 0 replies; 46+ messages in thread
From: Andrew Morton @ 2004-09-06 21:36 UTC (permalink / raw)
  To: Ray Bryant; +Cc: linux-kernel, linux-mm, riel, piggin, mbligh, kernel

Ray Bryant <raybry@sgi.com> wrote:
>
> 
> 
> Andrew Morton wrote:
> 
> > 
> > That being said, your tests are interesting.  There's a wide spread of
> > results across different kernel versions and across different swappiness
> > settings.  But the question is: which behaviour is correct for your users,
> > and why?
> > 
> 
> Andrew,
> 
> Behavior more like that of 2.6.5 and 2.6.6 is what we would like to see, I 
> think.  We have had problems in the past with a single large HPC application 
> that runs for a long time then wants to push its data out quickly.  What 
> happens to us in 2.4.21 is that the page cache pages swap out the user pages, 
> and that is somethine we would like to avoid, since it can reduce the data
> rate significantly.

You probably need to decrease /proc/sys/vm/dirty_ratio and
dirty_background_ratio by a lot.  That will reduce the amount of
unreclaimable pagecache and will take pressure off page reclaim.

Also, converting the application to explicitly tell the kernel that it
doesn't want certain data cached will help things a lot. 
posix_fadvise(POSIX_FADV_DONTNEED), preferably preceded by fsync().

> We were planning on suggesting that such users set swappiness=0 to give
> user pages priority over the page cache pages.  But it doesn't look like that 
> works very well in the more recent kernels.

As I say above: avoiding putting all that pressure onto page reclaim in the
first case would be preferable to trying to fix stuff up after it has
happened.

> ...
> On a separate issue, the response to my proposal for a mempolicy to control
> allocation of page cache pages has been <ahem> underwhelming.
> 
> (See: http://marc.theaimsgroup.com/?l=linux-mm&m=109416852113561&w=2
>   and  http://marc.theaimsgroup.com/?l=linux-mm&m=109416852416997&w=2 )
> 
> I wonder if this is because I just posted it to linux-mm or its not fleshed 
> out enough yet to be interesting?
> 

General brain-fry, I expect.  There's a lot happening.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 21:22   ` Ray Bryant
  2004-09-06 21:36     ` Andrew Morton
@ 2004-09-06 22:37     ` William Lee Irwin III
  2004-09-06 23:51       ` Nick Piggin
  1 sibling, 1 reply; 46+ messages in thread
From: William Lee Irwin III @ 2004-09-06 22:37 UTC (permalink / raw)
  To: Ray Bryant; +Cc: Andrew Morton, linux-kernel, linux-mm, riel, piggin, kernel

On Mon, Sep 06, 2004 at 04:22:07PM -0500, Ray Bryant wrote:
> We were planning on suggesting that such users set swappiness=0 to give
> user pages priority over the page cache pages.  But it doesn't look like 
> that works very well in the more recent kernels.
> One (perhaps) desirable feature would be for intermediate values of 
> swappiness to have behavior in between the two extremes (mapped pages have 
> higher priority vs page cache pages having priority over unreferenced 
> mapped pages),
> so that one would have finer grain control over the amount of swap used.  
> I'm not sure how to achieve such a goal, however.  :-)

Priority paging again? A perennial suggestion.


On Mon, Sep 06, 2004 at 04:22:07PM -0500, Ray Bryant wrote:
> On a separate issue, the response to my proposal for a mempolicy to control
> allocation of page cache pages has been <ahem> underwhelming.
> (See: http://marc.theaimsgroup.com/?l=linux-mm&m=109416852113561&w=2
>  and  http://marc.theaimsgroup.com/?l=linux-mm&m=109416852416997&w=2 )
> I wonder if this is because I just posted it to linux-mm or its not fleshed 
> out enough yet to be interesting?

It was very noncontroversial. Since it's apparently useful to someone
and generally low-impact it should probably be merged.


-- wli
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 19:11 swapping and the value of /proc/sys/vm/swappiness Ray Bryant
  2004-09-06 20:10 ` Andrew Morton
@ 2004-09-06 22:48 ` William Lee Irwin III
  2004-09-06 23:09 ` Con Kolivas
  2 siblings, 0 replies; 46+ messages in thread
From: William Lee Irwin III @ 2004-09-06 22:48 UTC (permalink / raw)
  To: Ray Bryant
  Cc: Andrew Morton, Kernel Mailing List, linux-mm, Rik van Riel,
	Nick Piggin, Con Kolivas

On Mon, Sep 06, 2004 at 02:11:29PM -0500, Ray Bryant wrote:
> What is unexpected is that the amount of swap space used at a particular
> swappiness setting varies dramatically with the kernel version being 
> tested, in spite of the fact that the basic swap_tendency calculation in 
> refile_ianctive_zone() is unchanged.  (Other, subtle changes in the vm as a 
> whole and this routine in particular clearly effect the impact of that 
> computation.)
> For example, at a swappiness value of 0, Kernel 2.6.5 swapped out 0 bytes,
> whereas Kernel 2.6.9-rc1-mm3 swapped out 10 GB.  Similarly, most kernels
> have a significant change in behavior for swappiness values near 100, but
> for SLES9 the change point occurs at swappness=60.
> A scan of the change logs for swappiness related changes shows nothing that 
> might explain these changes.  My question is:  "Is this change in behavior
> deliberate, or just a side effect of other changes that were made in the 
> vm?" and "What kind of swappiness behavior might I expect to find in future 
> kernels?".

IIRC no deliberate /proc/sys/vm/swappiness semantic changes were merged.
The policy tweakers have something to answer for here unless some stats
they rely upon have since been flubbed. Logging periodic snapshots of
/proc/vmstat for these benchmarks may be helpful to implicate specific
statistics' bungling or rule out statistic miscalculation as causes.


-- wli
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 19:11 swapping and the value of /proc/sys/vm/swappiness Ray Bryant
  2004-09-06 20:10 ` Andrew Morton
  2004-09-06 22:48 ` William Lee Irwin III
@ 2004-09-06 23:09 ` Con Kolivas
  2004-09-06 23:27   ` Andrew Morton
  2 siblings, 1 reply; 46+ messages in thread
From: Con Kolivas @ 2004-09-06 23:09 UTC (permalink / raw)
  To: Ray Bryant
  Cc: Andrew Morton, Kernel Mailing List, linux-mm, Rik van Riel,
	Nick Piggin, Martin J. Bligh

Ray Bryant writes:

> Andrew (et al),
> 
> The attached results started as an exercise to try to understand what value of 
> "swappiness" we should be recommending to our Altix customers when they start 
> running Linux 2.6 kernels.  The benchmark is very simple -- a task first 
> mallocs around 90% of memory, touches all of the memory, then sleeps forever.
> After the task begins to sleep, we start up a bunch of "dd" copies.  When the 
> dd's all complete, we record the amount of swap used, the size of the page 
> cache, and the data rates for the dd's.  (Exact details are given in the 
> attachment.)  The benchmark was repeated for swappiness values of 0, 20, 40, 
> 60, 80, 100, for a number of recent 2.6 kernels.
> 
> What is unexpected is that the amount of swap space used at a particular
> swappiness setting varies dramatically with the kernel version being tested, 
> in spite of the fact that the basic swap_tendency calculation in 
> refile_ianctive_zone() is unchanged.  (Other, subtle changes in the vm as a 
> whole and this routine in particular clearly effect the impact of that 
> computation.)
> 
> For example, at a swappiness value of 0, Kernel 2.6.5 swapped out 0 bytes,
> whereas Kernel 2.6.9-rc1-mm3 swapped out 10 GB.  Similarly, most kernels
> have a significant change in behavior for swappiness values near 100, but
> for SLES9 the change point occurs at swappness=60.
> 
> A scan of the change logs for swappiness related changes shows nothing that 
> might explain these changes.  My question is:  "Is this change in behavior
> deliberate, or just a side effect of other changes that were made in the vm?" 
> and "What kind of swappiness behavior might I expect to find in future kernels?".

The change was not deliberate but there have been some other people report 
significant changes in the swappiness behaviour as well (see archives). It 
has usually been of the increased swapping variety lately. It has been 
annoying enough to the bleeding edge desktop users for a swag of out-of-tree 
hacks to start appearing (like mine).

Cheers,
Con

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 23:09 ` Con Kolivas
@ 2004-09-06 23:27   ` Andrew Morton
  2004-09-06 23:34     ` Con Kolivas
  0 siblings, 1 reply; 46+ messages in thread
From: Andrew Morton @ 2004-09-06 23:27 UTC (permalink / raw)
  To: Con Kolivas; +Cc: raybry, linux-kernel, linux-mm, riel, piggin, mbligh

Con Kolivas <kernel@kolivas.org> wrote:
>
> > A scan of the change logs for swappiness related changes shows nothing that 
>  > might explain these changes.  My question is:  "Is this change in behavior
>  > deliberate, or just a side effect of other changes that were made in the vm?" 
>  > and "What kind of swappiness behavior might I expect to find in future kernels?".
> 
>  The change was not deliberate but there have been some other people report 
>  significant changes in the swappiness behaviour as well (see archives). It 
>  has usually been of the increased swapping variety lately. It has been 
>  annoying enough to the bleeding edge desktop users for a swag of out-of-tree 
>  hacks to start appearing (like mine).

All of which is largely wasted effort.  It would be much more useful to get
down and identify which patch actually caused the behavioural change.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 23:27   ` Andrew Morton
@ 2004-09-06 23:34     ` Con Kolivas
  2004-09-07  0:03       ` Marcelo Tosatti
  0 siblings, 1 reply; 46+ messages in thread
From: Con Kolivas @ 2004-09-06 23:34 UTC (permalink / raw)
  To: Andrew Morton; +Cc: raybry, linux-kernel, linux-mm, riel, piggin, mbligh

Andrew Morton writes:

> Con Kolivas <kernel@kolivas.org> wrote:
>>
>> > A scan of the change logs for swappiness related changes shows nothing that 
>>  > might explain these changes.  My question is:  "Is this change in behavior
>>  > deliberate, or just a side effect of other changes that were made in the vm?" 
>>  > and "What kind of swappiness behavior might I expect to find in future kernels?".
>> 
>>  The change was not deliberate but there have been some other people report 
>>  significant changes in the swappiness behaviour as well (see archives). It 
>>  has usually been of the increased swapping variety lately. It has been 
>>  annoying enough to the bleeding edge desktop users for a swag of out-of-tree 
>>  hacks to start appearing (like mine).
> 
> All of which is largely wasted effort.  It would be much more useful to get
> down and identify which patch actually caused the behavioural change.

I don't disagree. Is there anyone who has the time and is willing to do the 
regression testing? This is a general appeal to the mailing list.

Cheers,
Con

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 22:37     ` William Lee Irwin III
@ 2004-09-06 23:51       ` Nick Piggin
  2004-09-07  0:31         ` Ray Bryant
  0 siblings, 1 reply; 46+ messages in thread
From: Nick Piggin @ 2004-09-06 23:51 UTC (permalink / raw)
  To: William Lee Irwin III
  Cc: Ray Bryant, Andrew Morton, linux-kernel, linux-mm, riel, kernel


William Lee Irwin III wrote:

>On Mon, Sep 06, 2004 at 04:22:07PM -0500, Ray Bryant wrote:
>
>>We were planning on suggesting that such users set swappiness=0 to give
>>user pages priority over the page cache pages.  But it doesn't look like 
>>that works very well in the more recent kernels.
>>One (perhaps) desirable feature would be for intermediate values of 
>>swappiness to have behavior in between the two extremes (mapped pages have 
>>higher priority vs page cache pages having priority over unreferenced 
>>mapped pages),
>>so that one would have finer grain control over the amount of swap used.  
>>I'm not sure how to achieve such a goal, however.  :-)
>>
>
>Priority paging again? A perennial suggestion.
>
>

I guess reclaim_mapped is effectively priority paging. But is reasonably
fragile I guess.

My mapped_page_cost stuff is possibly (I hope) more robust in theory, but
the change from never scanning mapped pages until some point, to always
scanning mapped pages slowly necessitated non trivial changes to things
like handling of use-once pages.


>
>On Mon, Sep 06, 2004 at 04:22:07PM -0500, Ray Bryant wrote:
>
>>On a separate issue, the response to my proposal for a mempolicy to control
>>allocation of page cache pages has been <ahem> underwhelming.
>>(See: http://marc.theaimsgroup.com/?l=linux-mm&m=109416852113561&w=2
>> and  http://marc.theaimsgroup.com/?l=linux-mm&m=109416852416997&w=2 )
>>I wonder if this is because I just posted it to linux-mm or its not fleshed 
>>out enough yet to be interesting?
>>
>
>It was very noncontroversial. Since it's apparently useful to someone
>and generally low-impact it should probably be merged.
>
>

Yeah, I couldn't see any reason to not go ahead with it, which is why I
didn't say anything :)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 23:34     ` Con Kolivas
@ 2004-09-07  0:03       ` Marcelo Tosatti
  2004-09-07  1:34         ` Con Kolivas
                           ` (2 more replies)
  0 siblings, 3 replies; 46+ messages in thread
From: Marcelo Tosatti @ 2004-09-07  0:03 UTC (permalink / raw)
  To: Con Kolivas
  Cc: Andrew Morton, raybry, linux-kernel, linux-mm, riel, piggin, mbligh

On Tue, Sep 07, 2004 at 09:34:20AM +1000, Con Kolivas wrote:
> Andrew Morton writes:
> 
> >Con Kolivas <kernel@kolivas.org> wrote:
> >>
> >>> A scan of the change logs for swappiness related changes shows nothing 
> >>that > might explain these changes.  My question is:  "Is this change in 
> >> behavior
> >> > deliberate, or just a side effect of other changes that were made in 
> >> the vm?" > and "What kind of swappiness behavior might I expect to find 
> >> in future kernels?".
> >>
> >> The change was not deliberate but there have been some other people 
> >> report significant changes in the swappiness behaviour as well (see 
> >> archives). It has usually been of the increased swapping variety lately. 
> >> It has been annoying enough to the bleeding edge desktop users for a 
> >> swag of out-of-tree hacks to start appearing (like mine).
> >
> >All of which is largely wasted effort.  It would be much more useful to get
> >down and identify which patch actually caused the behavioural change.
> 
> I don't disagree. Is there anyone who has the time and is willing to do the 
> regression testing? This is a general appeal to the mailing list.

Hi kernel fellows,

I volunteer. I'll try something tomorrow to compare swappiness of older kernels like  
2.6.5 and 2.6.6, which were fine on SGI's Altix tests, up to current newer kernels 
(on small memory boxes of course).

Someone needs to write a vmstat-like tool to parse /proc/vmstat. 
The statistics in there allows us to watch the behaviour of VM
page reclaim code.

Con, if you could compile a list of reports we would be very grateful.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-06 23:51       ` Nick Piggin
@ 2004-09-07  0:31         ` Ray Bryant
  0 siblings, 0 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-07  0:31 UTC (permalink / raw)
  To: Nick Piggin
  Cc: William Lee Irwin III, Andrew Morton, linux-kernel, linux-mm,
	riel, kernel


Nick Piggin wrote:

> 
>>
>> On Mon, Sep 06, 2004 at 04:22:07PM -0500, Ray Bryant wrote:
>>
>>> On a separate issue, the response to my proposal for a mempolicy to 
>>> control
>>> allocation of page cache pages has been <ahem> underwhelming.
>>> (See: http://marc.theaimsgroup.com/?l=linux-mm&m=109416852113561&w=2
>>> and  http://marc.theaimsgroup.com/?l=linux-mm&m=109416852416997&w=2 )
>>> I wonder if this is because I just posted it to linux-mm or its not 
>>> fleshed out enough yet to be interesting?
>>>
>>
>> It was very noncontroversial. Since it's apparently useful to someone
>> and generally low-impact it should probably be merged.
>>
>>
> 
> Yeah, I couldn't see any reason to not go ahead with it, which is why I
> didn't say anything :)
> 
> 

Cool.  I'll go ahead and finish it and make it something useful then.

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-07  0:03       ` Marcelo Tosatti
@ 2004-09-07  1:34         ` Con Kolivas
  2004-09-07 10:38         ` Nick Piggin
  2004-09-07 21:20         ` Marcelo Tosatti
  2 siblings, 0 replies; 46+ messages in thread
From: Con Kolivas @ 2004-09-07  1:34 UTC (permalink / raw)
  To: Marcelo Tosatti
  Cc: Andrew Morton, raybry, linux-kernel, linux-mm, riel, piggin, mbligh

Marcelo Tosatti writes:

> On Tue, Sep 07, 2004 at 09:34:20AM +1000, Con Kolivas wrote:
>> Andrew Morton writes:
>> 
>> >Con Kolivas <kernel@kolivas.org> wrote:
>> >>
>> >>> A scan of the change logs for swappiness related changes shows nothing 
>> >>that > might explain these changes.  My question is:  "Is this change in 
>> >> behavior
>> >> > deliberate, or just a side effect of other changes that were made in 
>> >> the vm?" > and "What kind of swappiness behavior might I expect to find 
>> >> in future kernels?".
>> >>
>> >> The change was not deliberate but there have been some other people 
>> >> report significant changes in the swappiness behaviour as well (see 
>> >> archives). It has usually been of the increased swapping variety lately. 
>> >> It has been annoying enough to the bleeding edge desktop users for a 
>> >> swag of out-of-tree hacks to start appearing (like mine).
>> >
>> >All of which is largely wasted effort.  It would be much more useful to get
>> >down and identify which patch actually caused the behavioural change.
>> 
>> I don't disagree. Is there anyone who has the time and is willing to do the 
>> regression testing? This is a general appeal to the mailing list.
> 
> Hi kernel fellows,
> 
> I volunteer. I'll try something tomorrow to compare swappiness of older kernels like  
> 2.6.5 and 2.6.6, which were fine on SGI's Altix tests, up to current newer kernels 
> (on small memory boxes of course).
> 
> Someone needs to write a vmstat-like tool to parse /proc/vmstat. 
> The statistics in there allows us to watch the behaviour of VM
> page reclaim code.
> 
> Con, if you could compile a list of reports we would be very grateful.

Apart from lots of "soft" reports I've been getting, the most obvious one 
recently on the mailing list is this: 

http://marc.theaimsgroup.com/?l=linux-kernel&m=109237941331221&w=2

and no, I'm not referring to this thread because he tried one of my patches; 
that's an old patch that I'm not even pushing any more.

Cheers,
Con

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-07  0:03       ` Marcelo Tosatti
  2004-09-07  1:34         ` Con Kolivas
@ 2004-09-07 10:38         ` Nick Piggin
  2004-09-07 10:56           ` Con Kolivas
  2004-09-07 17:03           ` Ray Bryant
  2004-09-07 21:20         ` Marcelo Tosatti
  2 siblings, 2 replies; 46+ messages in thread
From: Nick Piggin @ 2004-09-07 10:38 UTC (permalink / raw)
  To: Marcelo Tosatti
  Cc: Con Kolivas, Andrew Morton, raybry, linux-kernel, linux-mm, riel, mbligh


Marcelo Tosatti wrote:

>
>Hi kernel fellows,
>
>I volunteer. I'll try something tomorrow to compare swappiness of older kernels like  
>2.6.5 and 2.6.6, which were fine on SGI's Altix tests, up to current newer kernels 
>(on small memory boxes of course).
>

Hi Marcelo,

Just a suggestion - I'd look at the thrashing control patch first.
I bet that's the cause.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-07 10:38         ` Nick Piggin
@ 2004-09-07 10:56           ` Con Kolivas
  2004-09-08 16:45             ` Marcelo Tosatti
  2004-09-07 17:03           ` Ray Bryant
  1 sibling, 1 reply; 46+ messages in thread
From: Con Kolivas @ 2004-09-07 10:56 UTC (permalink / raw)
  To: Nick Piggin
  Cc: Marcelo Tosatti, Andrew Morton, raybry, linux-kernel, linux-mm,
	riel, mbligh

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

Nick Piggin wrote:
> 
> 
> Marcelo Tosatti wrote:
> 
>>
>> Hi kernel fellows,
>>
>> I volunteer. I'll try something tomorrow to compare swappiness of 
>> older kernels like  2.6.5 and 2.6.6, which were fine on SGI's Altix 
>> tests, up to current newer kernels (on small memory boxes of course).
>>
> 
> Hi Marcelo,
> 
> Just a suggestion - I'd look at the thrashing control patch first.
> I bet that's the cause.

Good point!

I recall one of my users found his workload which often hit swap lightly 
was swapping much heavier and his performance dropped dramatically until 
I stopped including the swap thrash control patch. I informed Rik about 
it some time back so I'm not sure if he addressed it in the meantime.

Cheers,
Con

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-07 10:38         ` Nick Piggin
  2004-09-07 10:56           ` Con Kolivas
@ 2004-09-07 17:03           ` Ray Bryant
  1 sibling, 0 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-07 17:03 UTC (permalink / raw)
  To: Nick Piggin
  Cc: Marcelo Tosatti, Con Kolivas, Andrew Morton, linux-kernel,
	linux-mm, riel, mbligh


Nick Piggin wrote:
> 
> 
> Just a suggestion - I'd look at the thrashing control patch first.
> I bet that's the cause.
> 
> 
The token based thrashing control patch is also in 2.6.8.1-mm4, and that
kernel doesn't behave nearly as badly as 2.5.9-rc1-mm3, so I don't think
that is the culprit in that case.
-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-07  0:03       ` Marcelo Tosatti
  2004-09-07  1:34         ` Con Kolivas
  2004-09-07 10:38         ` Nick Piggin
@ 2004-09-07 21:20         ` Marcelo Tosatti
  2004-09-08  2:18           ` Marcelo Tosatti
                             ` (2 more replies)
  2 siblings, 3 replies; 46+ messages in thread
From: Marcelo Tosatti @ 2004-09-07 21:20 UTC (permalink / raw)
  To: Con Kolivas
  Cc: Andrew Morton, raybry, linux-kernel, linux-mm, riel, piggin, mbligh

On Mon, Sep 06, 2004 at 09:03:04PM -0300, Marcelo Tosatti wrote:
> On Tue, Sep 07, 2004 at 09:34:20AM +1000, Con Kolivas wrote:
> > Andrew Morton writes:
> > 
> > >Con Kolivas <kernel@kolivas.org> wrote:
> > >>
> > >>> A scan of the change logs for swappiness related changes shows nothing 
> > >>that > might explain these changes.  My question is:  "Is this change in 
> > >> behavior
> > >> > deliberate, or just a side effect of other changes that were made in 
> > >> the vm?" > and "What kind of swappiness behavior might I expect to find 
> > >> in future kernels?".
> > >>
> > >> The change was not deliberate but there have been some other people 
> > >> report significant changes in the swappiness behaviour as well (see 
> > >> archives). It has usually been of the increased swapping variety lately. 
> > >> It has been annoying enough to the bleeding edge desktop users for a 
> > >> swag of out-of-tree hacks to start appearing (like mine).
> > >
> > >All of which is largely wasted effort.  It would be much more useful to get
> > >down and identify which patch actually caused the behavioural change.
> > 
> > I don't disagree. Is there anyone who has the time and is willing to do the 
> > regression testing? This is a general appeal to the mailing list.
> 
> Hi kernel fellows,
> 
> I volunteer. I'll try something tomorrow to compare swappiness of older kernels like  
> 2.6.5 and 2.6.6, which were fine on SGI's Altix tests, up to current newer kernels 
> (on small memory boxes of course).
> 
> Someone needs to write a vmstat-like tool to parse /proc/vmstat. 
> The statistics in there allows us to watch the behaviour of VM
> page reclaim code.
> 
> Con, if you could compile a list of reports we would be very grateful.

Spent some time doing a few tests.

A contained test (512MB box, allocate 450MB of memory, touch and sleep + 
huge dd) show's that 2.6.6 and 2.6.7 are equivalent (swapout 120-150M when the "dd" 
starts writing out data).

2.6.9-rc1 swaps out 350M on the same test. Doenst seem nice, I'll try to isolate 
what causes this tomorrow (this is probably what is hitting desktop users which
is fixed by Con's patches). Thats problem #1. Something needs a little tweaking 
I think. 

Ray, I see the additional swapouts increase the dd performance for your particular testcase:

on 2.6.6:
        Total I/O   Avg Swap   min    max     pg cache    min    max
       ----------- --------- ------- ------  --------- ------- -------
   0   242.47 MB/s      0 MB (     0,     0)   3195 MB (  3138,  3266)
  20   256.06 MB/s      0 MB (     0,     0)   3170 MB (  3074,  3234)
  40   267.29 MB/s      0 MB (     0,     0)   3189 MB (  3137,  3234)
  60   289.43 MB/s    666 MB (    72,  1680)   3847 MB (  3296,  4817)		<---------- 

So for this one testcase it is being beneficial. 

However, decreasing the "swappiness" value does not seem to make much of a difference:

Kernel Version 2.6.8.1-mm4:
        Total I/O   Avg Swap   min    max     pg cache    min    max
       ----------- --------- ------- ------  --------- ------- -------
   0   287.28 MB/s    710 MB (    46,  3060)   4082 MB (  3426,  6308)
  20   288.05 MB/s    508 MB (    94,  1417)   3848 MB (  3442,  4739)
  40   287.03 MB/s    588 MB (   199,  1251)   3909 MB (  3570,  4515)
  60   290.08 MB/s    640 MB (   210,  1190)   3976 MB (  3538,  4531)
  80   287.73 MB/s    693 MB (   316,  1195)   4049 MB (  3713,  4545)
 100   166.17 MB/s  26001 MB ( 26001, 26002)  28798 MB ( 28740, 28852)
                                                                                                                                                                                   
Kernel Version 2.6.9-rc1-mm3:
        Total I/O   Avg Swap   min    max     pg cache    min    max
       ----------- --------- ------- ------  --------- ------- -------
   0   274.80 MB/s  10511 MB (  5644, 14492)  13293 MB (  8596, 17156)
  20   267.02 MB/s  12624 MB (  5578, 16287)  15298 MB (  8468, 18889)
  40   267.66 MB/s  13541 MB (  6619, 17461)  16199 MB (  9393, 20044)
  60   233.73 MB/s  18094 MB ( 16550, 19676)  20629 MB ( 19103, 22192)
  80   213.64 MB/s  20950 MB ( 15844, 22977)  23450 MB ( 18496, 25440)
 100   164.58 MB/s  26004 MB ( 26004, 26004)  28410 MB ( 28327, 28455)

And that is a problem #2 - swappinness not being honoured. Guys, 
any ideas on the reason for that?

Andrew, dirty_ratio and dirty_background_ratio (as low as 5% each) did not significantly 
affect the amount of swapped out data, only a small effect on _how soon_ anonymous 
memory was swapped out.

And finally, Ray, the difference you see between 2.6.6 and 2.6.7 can be explained, 
as noted by others in this thread, to vmscan.c changes (page replacement/scanning policy
changes were made).

Will continue with more tests tomorrow.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-07 21:20         ` Marcelo Tosatti
@ 2004-09-08  2:18           ` Marcelo Tosatti
  2004-09-08 14:20           ` Ray Bryant
  2004-09-08 15:19           ` Ray Bryant
  2 siblings, 0 replies; 46+ messages in thread
From: Marcelo Tosatti @ 2004-09-08  2:18 UTC (permalink / raw)
  To: Con Kolivas
  Cc: Andrew Morton, raybry, linux-kernel, linux-mm, riel, piggin, mbligh

> Spent some time doing a few tests.
> 
> A contained test (512MB box, allocate 450MB of memory, touch and sleep + 
> huge dd) show's that 2.6.6 and 2.6.7 are equivalent (swapout 120-150M when the "dd" 
> starts writing out data).
> 
> 2.6.9-rc1 swaps out 350M on the same test. Doenst seem nice, I'll try to isolate 
> what causes this tomorrow (this is probably what is hitting desktop users which
> is fixed by Con's patches). Thats problem #1. Something needs a little tweaking 
> I think. 
> 
> Ray, I see the additional swapouts increase the dd performance for your particular testcase:
> 
> on 2.6.6:
>         Total I/O   Avg Swap   min    max     pg cache    min    max
>        ----------- --------- ------- ------  --------- ------- -------
>    0   242.47 MB/s      0 MB (     0,     0)   3195 MB (  3138,  3266)
>   20   256.06 MB/s      0 MB (     0,     0)   3170 MB (  3074,  3234)
>   40   267.29 MB/s      0 MB (     0,     0)   3189 MB (  3137,  3234)
>   60   289.43 MB/s    666 MB (    72,  1680)   3847 MB (  3296,  4817)		<---------- 
> 
> So for this one testcase it is being beneficial. 
> 
> However, decreasing the "swappiness" value does not seem to make much of a difference:
> 
> Kernel Version 2.6.8.1-mm4:
>         Total I/O   Avg Swap   min    max     pg cache    min    max
>        ----------- --------- ------- ------  --------- ------- -------
>    0   287.28 MB/s    710 MB (    46,  3060)   4082 MB (  3426,  6308)
>   20   288.05 MB/s    508 MB (    94,  1417)   3848 MB (  3442,  4739)
>   40   287.03 MB/s    588 MB (   199,  1251)   3909 MB (  3570,  4515)
>   60   290.08 MB/s    640 MB (   210,  1190)   3976 MB (  3538,  4531)
>   80   287.73 MB/s    693 MB (   316,  1195)   4049 MB (  3713,  4545)
>  100   166.17 MB/s  26001 MB ( 26001, 26002)  28798 MB ( 28740, 28852)
>                                                                                                                                                                                    
> Kernel Version 2.6.9-rc1-mm3:
>         Total I/O   Avg Swap   min    max     pg cache    min    max
>        ----------- --------- ------- ------  --------- ------- -------
>    0   274.80 MB/s  10511 MB (  5644, 14492)  13293 MB (  8596, 17156)
>   20   267.02 MB/s  12624 MB (  5578, 16287)  15298 MB (  8468, 18889)
>   40   267.66 MB/s  13541 MB (  6619, 17461)  16199 MB (  9393, 20044)
>   60   233.73 MB/s  18094 MB ( 16550, 19676)  20629 MB ( 19103, 22192)
>   80   213.64 MB/s  20950 MB ( 15844, 22977)  23450 MB ( 18496, 25440)
>  100   164.58 MB/s  26004 MB ( 26004, 26004)  28410 MB ( 28327, 28455)
> 
> And that is a problem #2 - swappinness not being honoured. Guys, 
> any ideas on the reason for that?

Hum I just tested it on my 512MB box and swappiness is working fine on 2.6.8.. (it
has expected effects), unlike Ray's tests.

> 
> Andrew, dirty_ratio and dirty_background_ratio (as low as 5% each) did not significantly 
> affect the amount of swapped out data, only a small effect on _how soon_ anonymous 
> memory was swapped out.
> 
> And finally, Ray, the difference you see between 2.6.6 and 2.6.7 can be explained, 
> as noted by others in this thread, to vmscan.c changes (page replacement/scanning policy
> changes were made).
> 
> Will continue with more tests tomorrow.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-07 21:20         ` Marcelo Tosatti
  2004-09-08  2:18           ` Marcelo Tosatti
@ 2004-09-08 14:20           ` Ray Bryant
  2004-09-08 16:54             ` Marcelo Tosatti
  2004-09-08 17:31             ` Martin J. Bligh
  2004-09-08 15:19           ` Ray Bryant
  2 siblings, 2 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-08 14:20 UTC (permalink / raw)
  To: Marcelo Tosatti
  Cc: Con Kolivas, Andrew Morton, linux-kernel, linux-mm, riel, piggin, mbligh

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



Marcelo Tosatti wrote:

> 
> Andrew, dirty_ratio and dirty_background_ratio (as low as 5% each) did not significantly 
> affect the amount of swapped out data, only a small effect on _how soon_ anonymous 
> memory was swapped out.
> 

I looked at the get_dirty_limits() code and for the test cases I was running,
we have mapped > 90% of memory.  So what will happen is that dirty_ratio will 
be thresholded at 5%, and background_ratio will be 1%.  Changing values in 
/proc won't modify this at all (well, you could force background_ratio to 0%.)

It seems to me that the 5% number in there is more or less arbitrary.  If we 
are on a big memory Altix (4 TB), 5% of memory would be 200 GB. That is a lot 
of page cache.

It seems get_dirty_limits() would be a lot simpler (and automatically scale as 
memory is mapped) if the limits were interpreted as being in terms of the 
amount of unmapped memory.  A patch that implements this idea is attached.
(Andrew -- if it comes to that I can submit this patch inline -- this is just 
for talking at the moment).

I'll run a few of the tests with this modified kernel and see if they are any 
different.

> And finally, Ray, the difference you see between 2.6.6 and 2.6.7 can be explained, 
> as noted by others in this thread, to vmscan.c changes (page replacement/scanning policy
> changes were made).

Yep.  I can probably live with those minor differences though.  I would be 
happier if the system didn't swap anything at all for low values of 
swappiness, though.

> 
> Will continue with more tests tomorrow.
> 

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

[-- Attachment #2: dirty-limits-in-terms-of-unmapped.patch --]
[-- Type: text/plain, Size: 1404 bytes --]

Index: linux-2.6.9-rc1-mm3-kdb/mm/page-writeback.c
===================================================================
--- linux-2.6.9-rc1-mm3-kdb.orig/mm/page-writeback.c	2004-09-03 10:18:57.000000000 -0700
+++ linux-2.6.9-rc1-mm3-kdb/mm/page-writeback.c	2004-09-07 14:46:24.000000000 -0700
@@ -135,32 +135,19 @@
 static void
 get_dirty_limits(struct writeback_state *wbs, long *pbackground, long *pdirty)
 {
-	int background_ratio;		/* Percentages */
-	int dirty_ratio;
-	int unmapped_ratio;
+	int unmapped;
 	long background;
 	long dirty;
 	struct task_struct *tsk;
 
 	get_writeback_state(wbs);
 
-	unmapped_ratio = 100 - (wbs->nr_mapped * 100) / total_pages;
 
-	dirty_ratio = vm_dirty_ratio;
-	if (dirty_ratio > unmapped_ratio / 2)
-		dirty_ratio = unmapped_ratio / 2;
+	unmapped = total_pages - wbs->nr_mapped;
 
-	if (dirty_ratio < 5)
-		dirty_ratio = 5;
+	background = (dirty_background_ratio * unmapped) / 100;
+	dirty      = (vm_dirty_ratio * unmapped) / 100;
 
-	/*
-	 * Keep the ratio between dirty_ratio and background_ratio roughly
-	 * what the sysctls are after dirty_ratio has been scaled (above).
-	 */
-	background_ratio = dirty_background_ratio * dirty_ratio/vm_dirty_ratio;
-
-	background = (background_ratio * total_pages) / 100;
-	dirty = (dirty_ratio * total_pages) / 100;
 	tsk = current;
 	if (tsk->flags & PF_LESS_THROTTLE || rt_task(tsk)) {
 		background += background / 4;

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-07 21:20         ` Marcelo Tosatti
  2004-09-08  2:18           ` Marcelo Tosatti
  2004-09-08 14:20           ` Ray Bryant
@ 2004-09-08 15:19           ` Ray Bryant
  2 siblings, 0 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-08 15:19 UTC (permalink / raw)
  To: Marcelo Tosatti
  Cc: Con Kolivas, Andrew Morton, linux-kernel, linux-mm, riel, piggin, mbligh


Marcelo Tosatti wrote:

> Ray, I see the additional swapouts increase the dd performance for your particular testcase:
> 
> on 2.6.6:
>         Total I/O   Avg Swap   min    max     pg cache    min    max
>        ----------- --------- ------- ------  --------- ------- -------
>    0   242.47 MB/s      0 MB (     0,     0)   3195 MB (  3138,  3266)
>   20   256.06 MB/s      0 MB (     0,     0)   3170 MB (  3074,  3234)
>   40   267.29 MB/s      0 MB (     0,     0)   3189 MB (  3137,  3234)
>   60   289.43 MB/s    666 MB (    72,  1680)   3847 MB (  3296,  4817)		<---------- 
> 
> So for this one testcase it is being beneficial. 
> 

True enough, but the general trend is that increasing swapping decreases data 
rate.  This is even more true for the real applications that we are modelling 
with this simple benchmark.  In thosec cases, the user has a lot of mapped 
data that they then write out using buffered I/O.  If the mapped data gets 
swapped out, then it may have to be swapped back in to be written out to the 
file system.  It would be faster to keep the mapped data from being swapped 
out at all provided that there is enough page cache space to keep the devices 
running at full speed.

(And yes, we've suggested that they mmap() the data files -- but sometimes 
this is an ISV's code that it causing the problem and we can't necessarily get 
them to update their codes to use the API's we want.)

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-07 10:56           ` Con Kolivas
@ 2004-09-08 16:45             ` Marcelo Tosatti
  2004-09-09  1:12               ` Con Kolivas
  0 siblings, 1 reply; 46+ messages in thread
From: Marcelo Tosatti @ 2004-09-08 16:45 UTC (permalink / raw)
  To: Con Kolivas
  Cc: Nick Piggin, Andrew Morton, raybry, linux-kernel, linux-mm, riel, mbligh

On Tue, Sep 07, 2004 at 08:56:47PM +1000, Con Kolivas wrote:
> Nick Piggin wrote:
> >
> >
> >Marcelo Tosatti wrote:
> >
> >>
> >>Hi kernel fellows,
> >>
> >>I volunteer. I'll try something tomorrow to compare swappiness of 
> >>older kernels like  2.6.5 and 2.6.6, which were fine on SGI's Altix 
> >>tests, up to current newer kernels (on small memory boxes of course).
> >>
> >
> >Hi Marcelo,
> >
> >Just a suggestion - I'd look at the thrashing control patch first.
> >I bet that's the cause.
> 
> Good point!
> 
> I recall one of my users found his workload which often hit swap lightly 
> was swapping much heavier and his performance dropped dramatically until 
> I stopped including the swap thrash control patch. I informed Rik about 
> it some time back so I'm not sure if he addressed it in the meantime.

Swap thrashing code doesnt affect anything, at least on my simple contained test.
With the same test, the amount of swapped out memory with 2.6.6/2.6.7 is 100-150MB,
 while 2.6.8/2.6.9-mm* swaps out around 250MB.

I tried 2.6.7's "vmscan.c" on 2.6.8 without noticeable difference, I wonder why. 

What I've noticed before with the swap token code is total crap interactivity 
when memory hog is running. Which doesnt happen without it.

Con, I've seen your hard swappiness patch, why do you remove the current
swap_tendency calculation? Can you give us some insight into it? 

The thing is, if the user thinks the machine is swapping out too heavily
he can always decrease vm_swappinness. Whatever change that might happen
on VM swapout policy can be tuned with vm_swappinness. 

It works - its not very smooth, changing from "53" to "50" causes the 
amount of swapped data to be 4 times smaller (due to 
if (swap_tendency >= 100) I believe). Apart from that its fine, 
and behaves as expected.

Maybe the current value of "60" is too high for most desktop users, 
if so it can be decreased a little bit. 

But whats the point of your patch?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 14:20           ` Ray Bryant
@ 2004-09-08 16:54             ` Marcelo Tosatti
  2004-09-08 19:35               ` Ray Bryant
  2004-09-08 17:31             ` Martin J. Bligh
  1 sibling, 1 reply; 46+ messages in thread
From: Marcelo Tosatti @ 2004-09-08 16:54 UTC (permalink / raw)
  To: Ray Bryant
  Cc: Con Kolivas, Andrew Morton, linux-kernel, linux-mm, riel, piggin, mbligh

On Wed, Sep 08, 2004 at 09:20:08AM -0500, Ray Bryant wrote:
> 
> 
> Marcelo Tosatti wrote:
> 
> >
> >Andrew, dirty_ratio and dirty_background_ratio (as low as 5% each) did not 
> >significantly affect the amount of swapped out data, only a small effect 
> >on _how soon_ anonymous memory was swapped out.
> >
> 
> I looked at the get_dirty_limits() code and for the test cases I was 
> running,
> we have mapped > 90% of memory.  So what will happen is that dirty_ratio 
> will be thresholded at 5%, and background_ratio will be 1%.  Changing 
> values in /proc won't modify this at all (well, you could force 
> background_ratio to 0%.)
> 
> It seems to me that the 5% number in there is more or less arbitrary.  If 
> we are on a big memory Altix (4 TB), 5% of memory would be 200 GB. That is 
> a lot of page cache.

On such huge memory machines I guess you have no choice but scale down the 
dirty limits for them to be "equivalent" with reference to IO device speed.

And as Martin says it depends on the workload also.

> It seems get_dirty_limits() would be a lot simpler (and automatically scale 
> as memory is mapped) if the limits were interpreted as being in terms of 
> the amount of unmapped memory.  A patch that implements this idea is 
> attached.
> (Andrew -- if it comes to that I can submit this patch inline -- this is 
> just for talking at the moment).
> 
> I'll run a few of the tests with this modified kernel and see if they are 
> any different.

Huh, that changes the meaning of the dirty limits. Dont think its suitable
for mainline.

> >And finally, Ray, the difference you see between 2.6.6 and 2.6.7 can be 
> >explained, as noted by others in this thread, to vmscan.c changes (page 
> >replacement/scanning policy
> >changes were made).
> 
> Yep.  I can probably live with those minor differences though.  I would be 
> happier if the system didn't swap anything at all for low values of 
> swappiness, though.

Now that must work - if its not we have a problem.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 14:20           ` Ray Bryant
  2004-09-08 16:54             ` Marcelo Tosatti
@ 2004-09-08 17:31             ` Martin J. Bligh
  2004-09-08 18:04               ` Rik van Riel
  2004-09-08 19:54               ` Ray Bryant
  1 sibling, 2 replies; 46+ messages in thread
From: Martin J. Bligh @ 2004-09-08 17:31 UTC (permalink / raw)
  To: Ray Bryant, Marcelo Tosatti
  Cc: Con Kolivas, Andrew Morton, linux-kernel, linux-mm, riel, piggin

> It seems to me that the 5% number in there is more or less arbitrary. 
> If we are on a big memory Altix (4 TB), 5% of memory would be 200 GB. 
> That is a lot of page cache.

For HPC, maybe. For a fileserver, it might be far too little. That's the
trouble ... it's all dependant on the workload. Personally, I'd prefer
to get rid of manual tweakables (which are a pain in the ass in the field
anyway), and try to have the kernel react to what the customer is doing.
I guess we can leave them there for overrides, but a self-tunable default
would be most desirable.

For instance, would be nice if we started doing writeback to the spindles
that weren't busy much earlier than if the disks were thrashing.

M.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 17:31             ` Martin J. Bligh
@ 2004-09-08 18:04               ` Rik van Riel
  2004-09-08 19:50                 ` Diego Calleja
  2004-09-08 19:54               ` Ray Bryant
  1 sibling, 1 reply; 46+ messages in thread
From: Rik van Riel @ 2004-09-08 18:04 UTC (permalink / raw)
  To: Martin J. Bligh
  Cc: Ray Bryant, Marcelo Tosatti, Con Kolivas, Andrew Morton,
	linux-kernel, linux-mm, piggin

On Wed, 8 Sep 2004, Martin J. Bligh wrote:

> For HPC, maybe. For a fileserver, it might be far too little. That's the
> trouble ... it's all dependant on the workload. Personally, I'd prefer
> to get rid of manual tweakables (which are a pain in the ass in the field
> anyway), and try to have the kernel react to what the customer is doing.

Agreed.  Many of these things should be self-tunable pretty
easily, too...


-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 19:35               ` Ray Bryant
@ 2004-09-08 19:30                 ` Marcelo Tosatti
  2004-09-09  3:06                   ` Ray Bryant
  0 siblings, 1 reply; 46+ messages in thread
From: Marcelo Tosatti @ 2004-09-08 19:30 UTC (permalink / raw)
  To: Ray Bryant
  Cc: Con Kolivas, Andrew Morton, linux-kernel, linux-mm, riel, piggin, mbligh

On Wed, Sep 08, 2004 at 02:35:03PM -0500, Ray Bryant wrote:
> 
> 
> Marcelo Tosatti wrote:
> 
> >
> >
> >Huh, that changes the meaning of the dirty limits. Dont think its suitable
> >for mainline.
> >
> >
> 
> The change is, in fact, not much different from what is already actually 
> there.  The code in get_dirty_limits() adjusts the value of the user 
> supplied parameters in /proc/sys/vm depending on how much mapped memory 
> there is.  If you undo the convoluted arithmetic that is in there, one 
> finds that if you are using the default dirty_ratio of 40%, then if the 
> unmapped_ratio is between 80% and 10%, then
> 
>    dirty_ratio = unmapped_ratio / 2;
> 
> and, a little bit of algebra later:
> 
>    dirty = (total_pages - wbs->nr_mapped)/2
> 
> and
> 
>    background = dirty_background_ratio/vm_background_ratio * (total_pages
> 	- wbs->nr_mapped)
> 
> That is, for a wide range of memory usage, you are really running with an
> dirty ratio of 50% stated in terms of the number of unmapped pages, and 
> there is no direct way to override this.

OK I see, yes. 

> Of course, at the edges, the code changes these calculations.  It just 
> seems to me that rather than continue the convoluted calculation that is in
> get_dirty_limits(), we just make the outcome more explicit and tell the user
> what is really going on.
> 
> We'd still have to figure out how to encourage a minimum page cache size of
> some kind, which is what I understand the 5% min value for dirty_ratio is 
> in there for.
 
For the user "dirty_ratio" and "dirty_background_ratio" means "percentage
of total memory" (thats how it has been traditionally in Linux). And right now,
 as you noted, we dont do that way.

There's probably a good reason for the "no more than half of unmapped memory".
Andrew ?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 16:54             ` Marcelo Tosatti
@ 2004-09-08 19:35               ` Ray Bryant
  2004-09-08 19:30                 ` Marcelo Tosatti
  0 siblings, 1 reply; 46+ messages in thread
From: Ray Bryant @ 2004-09-08 19:35 UTC (permalink / raw)
  To: Marcelo Tosatti
  Cc: Con Kolivas, Andrew Morton, linux-kernel, linux-mm, riel, piggin, mbligh


Marcelo Tosatti wrote:

> 
> 
> Huh, that changes the meaning of the dirty limits. Dont think its suitable
> for mainline.
> 
> 

The change is, in fact, not much different from what is already actually 
there.  The code in get_dirty_limits() adjusts the value of the user supplied 
parameters in /proc/sys/vm depending on how much mapped memory there is.  If 
you undo the convoluted arithmetic that is in there, one finds that if you are 
using the default dirty_ratio of 40%, then if the unmapped_ratio is between 
80% and 10%, then

    dirty_ratio = unmapped_ratio / 2;

and, a little bit of algebra later:

    dirty = (total_pages - wbs->nr_mapped)/2

and

    background = dirty_background_ratio/vm_background_ratio * (total_pages
	- wbs->nr_mapped)

That is, for a wide range of memory usage, you are really running with an
dirty ratio of 50% stated in terms of the number of unmapped pages, and there 
is no direct way to override this.

Of course, at the edges, the code changes these calculations.  It just seems 
to me that rather than continue the convoluted calculation that is in
get_dirty_limits(), we just make the outcome more explicit and tell the user
what is really going on.

We'd still have to figure out how to encourage a minimum page cache size of
some kind, which is what I understand the 5% min value for dirty_ratio is in 
there for.

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 18:04               ` Rik van Riel
@ 2004-09-08 19:50                 ` Diego Calleja
  2004-09-08 21:10                   ` Martin J. Bligh
  0 siblings, 1 reply; 46+ messages in thread
From: Diego Calleja @ 2004-09-08 19:50 UTC (permalink / raw)
  To: Rik van Riel
  Cc: mbligh, raybry, marcelo.tosatti, kernel, akpm, linux-kernel,
	linux-mm, piggin

El Wed, 08 Sep 2004 14:04:31 -0400 (EDT) Rik van Riel <riel@redhat.com> escribio:

> On Wed, 8 Sep 2004, Martin J. Bligh wrote:
> 
> > For HPC, maybe. For a fileserver, it might be far too little. That's the
> > trouble ... it's all dependant on the workload. Personally, I'd prefer
> > to get rid of manual tweakables (which are a pain in the ass in the field
> > anyway), and try to have the kernel react to what the customer is doing.
> 
> Agreed.  Many of these things should be self-tunable pretty
> easily, too...

I know this has been discussed before, but could a userspace daemon which
autotunes the tweakables do a better job wrt. to adapting the kernel
behaviour depending on the workload? Just like these days we have
irqbalance instead of a in-kernel "irq balancer". It's a alternative
worth of look at?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 17:31             ` Martin J. Bligh
  2004-09-08 18:04               ` Rik van Riel
@ 2004-09-08 19:54               ` Ray Bryant
  1 sibling, 0 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-08 19:54 UTC (permalink / raw)
  To: Martin J. Bligh
  Cc: Marcelo Tosatti, Con Kolivas, Andrew Morton, linux-kernel,
	linux-mm, riel, piggin


Martin J. Bligh wrote:
>>It seems to me that the 5% number in there is more or less arbitrary. 
>>If we are on a big memory Altix (4 TB), 5% of memory would be 200 GB. 
>>That is a lot of page cache.
> 
> 
> For HPC, maybe. For a fileserver, it might be far too little. That's the
> trouble ... it's all dependant on the workload. Personally, I'd prefer
> to get rid of manual tweakables (which are a pain in the ass in the field
> anyway), and try to have the kernel react to what the customer is doing.
> I guess we can leave them there for overrides, but a self-tunable default
> would be most desirable.
> 

I agree that tunables are a pain in the butt, but a quick fix would to be at 
least to add that 5% to the set of stuff settable in /proc/sys/vm.  Most
workloads/systems won't need to change it.  Very large Altix systems could 
change it if needed.

I don't think that is at the root of the swappiness problems with 
2.6.9-rc1-mm3, though.

> For instance, would be nice if we started doing writeback to the spindles
> that weren't busy much earlier than if the disks were thrashing.
> 
> M.
> 
> 

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 19:50                 ` Diego Calleja
@ 2004-09-08 21:10                   ` Martin J. Bligh
  2004-09-08 21:55                     ` Diego Calleja
  2004-09-08 22:28                     ` Alan Cox
  0 siblings, 2 replies; 46+ messages in thread
From: Martin J. Bligh @ 2004-09-08 21:10 UTC (permalink / raw)
  To: Diego Calleja, Rik van Riel
  Cc: raybry, marcelo.tosatti, kernel, akpm, linux-kernel, linux-mm, piggin

>> > For HPC, maybe. For a fileserver, it might be far too little. That's the
>> > trouble ... it's all dependant on the workload. Personally, I'd prefer
>> > to get rid of manual tweakables (which are a pain in the ass in the field
>> > anyway), and try to have the kernel react to what the customer is doing.
>> 
>> Agreed.  Many of these things should be self-tunable pretty
>> easily, too...
> 
> I know this has been discussed before, but could a userspace daemon which
> autotunes the tweakables do a better job wrt. to adapting the kernel
> behaviour depending on the workload? Just like these days we have
> irqbalance instead of a in-kernel "irq balancer". It's a alternative
> worth of look at?

I really don't see any point in pushing the self-tuning of the kernel out
into userspace. What are you hoping to achieve?

M.


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 21:10                   ` Martin J. Bligh
@ 2004-09-08 21:55                     ` Diego Calleja
  2004-09-08 22:20                       ` Martin J. Bligh
  2004-09-08 22:28                     ` Alan Cox
  1 sibling, 1 reply; 46+ messages in thread
From: Diego Calleja @ 2004-09-08 21:55 UTC (permalink / raw)
  To: Martin J. Bligh
  Cc: riel, raybry, marcelo.tosatti, kernel, akpm, linux-kernel,
	linux-mm, piggin

El Wed, 08 Sep 2004 14:10:32 -0700 "Martin J. Bligh" <mbligh@aracnet.com> escribio:

> I really don't see any point in pushing the self-tuning of the kernel out
> into userspace. What are you hoping to achieve?

Well your own words explain it, I think. "it's all dependant on the workload",
which means that only the user knows what he is going to do with the machine
and that the kernel doesn't knows that, so the algoritms built in the kernel
may be "not perfect" in their auto-tuning job. The point would be to
be able to take decisions the kernel can't take because userspace would
know better how the system should behave, say stupids things like "I want
to have this set of tunables which make compile jobs 0.01% faster at 12:00
because at that time a cron job autocompiles cvs snapshots of some project,
and at 6:00 those jobs have already finished so at that time I want a set
of tunables optimized for my everyday desktop work which make everthing 0.01%
slower but the system feels a 5% more reponsive". (well, for that a shell script
is enought) Kernel however could try to adapt itself to those changes, and do
it well...I don't really know. This came to my mind when I was thinking about
irqbalance case, which was somewhat similar, I also remember a discussion
about a "ktuned" in the mailing lists...I guess it's a matter of coding it
and get some numbers :-/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 21:55                     ` Diego Calleja
@ 2004-09-08 22:20                       ` Martin J. Bligh
  2004-09-08 23:22                         ` Rik van Riel
  0 siblings, 1 reply; 46+ messages in thread
From: Martin J. Bligh @ 2004-09-08 22:20 UTC (permalink / raw)
  To: Diego Calleja
  Cc: riel, raybry, marcelo.tosatti, kernel, akpm, linux-kernel,
	linux-mm, piggin

>> I really don't see any point in pushing the self-tuning of the kernel out
>> into userspace. What are you hoping to achieve?
> 
> Well your own words explain it, I think. "it's all dependant on the workload",
> which means that only the user knows what he is going to do with the machine
> and that the kernel doesn't knows that, so the algoritms built in the kernel
> may be "not perfect" in their auto-tuning job. The point would be to
> be able to take decisions the kernel can't take because userspace would
> know better how the system should behave, say stupids things like "I want
> to have this set of tunables which make compile jobs 0.01% faster at 12:00
> because at that time a cron job autocompiles cvs snapshots of some project,
> and at 6:00 those jobs have already finished so at that time I want a set
> of tunables optimized for my everyday desktop work which make everthing 0.01%
> slower but the system feels a 5% more reponsive". (well, for that a shell script
> is enought) Kernel however could try to adapt itself to those changes, and do
> it well...I don't really know. This came to my mind when I was thinking about
> irqbalance case, which was somewhat similar, I also remember a discussion
> about a "ktuned" in the mailing lists...I guess it's a matter of coding it
> and get some numbers :-/

Oh, I see what you mean. I think we're much better off sticking the mechanism
for autotuning stuff in the kernel - if we want to feed in policy from 
userspace (which 99.9% of people will never do), it can be through such
things as /proc/sys/vm/swapiness ... that could just fix them statically
if people insisted on such things. 

Having the kernel do something sensible by default is what we aim for ...
overrides still are possible if the sysadmin really thinks they're smarter ;-)

M.



--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 21:10                   ` Martin J. Bligh
  2004-09-08 21:55                     ` Diego Calleja
@ 2004-09-08 22:28                     ` Alan Cox
  2004-09-08 23:42                       ` Martin J. Bligh
  1 sibling, 1 reply; 46+ messages in thread
From: Alan Cox @ 2004-09-08 22:28 UTC (permalink / raw)
  To: Martin J. Bligh
  Cc: Diego Calleja, Rik van Riel, raybry, marcelo.tosatti, kernel,
	akpm, Linux Kernel Mailing List, linux-mm, piggin

On Mer, 2004-09-08 at 22:10, Martin J. Bligh wrote:
> I really don't see any point in pushing the self-tuning of the kernel out
> into userspace. What are you hoping to achieve?

What if there is more than one right answer to "self-tune" policy. Also
what if you want an application to tweak the tuning in ways that are
different to general policy ?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 22:20                       ` Martin J. Bligh
@ 2004-09-08 23:22                         ` Rik van Riel
  0 siblings, 0 replies; 46+ messages in thread
From: Rik van Riel @ 2004-09-08 23:22 UTC (permalink / raw)
  To: Martin J. Bligh
  Cc: Diego Calleja, raybry, marcelo.tosatti, kernel, akpm,
	linux-kernel, linux-mm, piggin

On Wed, 8 Sep 2004, Martin J. Bligh wrote:

> Oh, I see what you mean. I think we're much better off sticking the
> mechanism for autotuning stuff in the kernel -

Agreed.  Autotuning like this appears to work best by having
a self adjusting algorithm, often negative feedback loops so
things get balanced out automagically.

Works way better than anything looking at indirect data and
then tweaking some magic knobs...

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 22:28                     ` Alan Cox
@ 2004-09-08 23:42                       ` Martin J. Bligh
  0 siblings, 0 replies; 46+ messages in thread
From: Martin J. Bligh @ 2004-09-08 23:42 UTC (permalink / raw)
  To: Alan Cox
  Cc: Diego Calleja, Rik van Riel, raybry, marcelo.tosatti, kernel,
	akpm, Linux Kernel Mailing List, linux-mm, piggin

> On Mer, 2004-09-08 at 22:10, Martin J. Bligh wrote:
>> I really don't see any point in pushing the self-tuning of the kernel out
>> into userspace. What are you hoping to achieve?
> 
> What if there is more than one right answer to "self-tune" policy. Also
> what if you want an application to tweak the tuning in ways that are
> different to general policy ?

It's still overridable from userspace, I'd think. But having a sensible
default in the kernel makes a crapload of sense to me. We have better
faster access to data from there - if there are really things that aren't
just parameters to the tuning algorithm it'd have to repeatedly poke 
values into hard overrides. Do-able, but not what we want by default,
I'd think.

M.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 16:45             ` Marcelo Tosatti
@ 2004-09-09  1:12               ` Con Kolivas
  0 siblings, 0 replies; 46+ messages in thread
From: Con Kolivas @ 2004-09-09  1:12 UTC (permalink / raw)
  To: Marcelo Tosatti
  Cc: Nick Piggin, Andrew Morton, raybry, linux-kernel, linux-mm, riel, mbligh

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

Marcelo Tosatti wrote:
> On Tue, Sep 07, 2004 at 08:56:47PM +1000, Con Kolivas wrote:
> 
>>Nick Piggin wrote:
>>
>>>
>>>Marcelo Tosatti wrote:
>>>
>>>
>>>>Hi kernel fellows,
>>>>
>>>>I volunteer. I'll try something tomorrow to compare swappiness of 
>>>>older kernels like  2.6.5 and 2.6.6, which were fine on SGI's Altix 
>>>>tests, up to current newer kernels (on small memory boxes of course).
>>>>
>>>
>>>Hi Marcelo,
>>>
>>>Just a suggestion - I'd look at the thrashing control patch first.
>>>I bet that's the cause.
>>
>>Good point!
>>
>>I recall one of my users found his workload which often hit swap lightly 
>>was swapping much heavier and his performance dropped dramatically until 
>>I stopped including the swap thrash control patch. I informed Rik about 
>>it some time back so I'm not sure if he addressed it in the meantime.
> 
> 
> Swap thrashing code doesnt affect anything, at least on my simple contained test.
> With the same test, the amount of swapped out memory with 2.6.6/2.6.7 is 100-150MB,
>  while 2.6.8/2.6.9-mm* swaps out around 250MB.
> 
> I tried 2.6.7's "vmscan.c" on 2.6.8 without noticeable difference, I wonder why. 
> 
> What I've noticed before with the swap token code is total crap interactivity 
> when memory hog is running. Which doesnt happen without it.
> 
> Con, I've seen your hard swappiness patch, why do you remove the current
> swap_tendency calculation? Can you give us some insight into it? 

Sure. It was painfully simple. The swap tendency worked basically the 
same but did not take into account distress. ie It made the "swappiness" 
knob purely dependant on mapped ratio. For whatever reason, if the 
swappiness value is the same in later kernels but swaps more, there is 
more "distress" meaning we are priority scanning much more aggressively.

Cheers,
Con

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-09  3:06                   ` Ray Bryant
@ 2004-09-09  2:14                     ` Marcelo Tosatti
  2004-09-09 14:21                       ` Ray Bryant
  2004-09-09  3:09                     ` William Lee Irwin III
  1 sibling, 1 reply; 46+ messages in thread
From: Marcelo Tosatti @ 2004-09-09  2:14 UTC (permalink / raw)
  To: Ray Bryant
  Cc: Con Kolivas, Andrew Morton, linux-kernel, linux-mm, riel, piggin, mbligh

On Wed, Sep 08, 2004 at 10:06:20PM -0500, Ray Bryant wrote:
> Marcelo,
> 
> For what it is worth, here are the benchmark results for the kernel with 
> the patch I discussed before, along with the previous 2.6.9-rc1-mm3 results:
> 
> Kernel Version 2.6.9-rc1-mm3:
>         Total I/O   Avg Swap   min    max     pg cache    min    max
>        ----------- --------- ------- ------  --------- ------- -------
>    0   274.80 MB/s  10511 MB (  5644, 14492)  13293 MB (  8596, 17156)
>   20   267.02 MB/s  12624 MB (  5578, 16287)  15298 MB (  8468, 18889)
>   40   267.66 MB/s  13541 MB (  6619, 17461)  16199 MB (  9393, 20044)
>   60   233.73 MB/s  18094 MB ( 16550, 19676)  20629 MB ( 19103, 22192)
>   80   213.64 MB/s  20950 MB ( 15844, 22977)  23450 MB ( 18496, 25440)
>  100   164.58 MB/s  26004 MB ( 26004, 26004)  28410 MB ( 28327, 28455)
> 
> Kernel Version 2.6.9-rc1-mm3-kdb-nrmap:
>         Total I/O   Avg Swap   min    max     pg cache    min    max
>        ----------- --------- ------- ------  --------- ------- -------
>    0   286.93 MB/s   7288 MB (  4847, 14536)  10122 MB (  7771, 17138)
>   20   252.43 MB/s  13305 MB (  3950, 18337)  15938 MB (  6866, 20876)
>   40   268.52 MB/s  11538 MB (  5333, 17298)  14238 MB (  8247, 19836)
>   60   242.72 MB/s  16367 MB (  8652, 21217)  18909 MB ( 11514, 23561)
>   80   212.94 MB/s  19424 MB (  5632, 24047)  21937 MB (  8567, 26469)
>  100   161.66 MB/s  26006 MB ( 26004, 26007)  28445 MB ( 28407, 28471)
> 
> Except for the swappiness = 20 case, things are a smallish bit better for
> the modified kernel than 2.6.9-rc1-mm3.  Clearly we haven't found the root 
> of this problem yet.

Indeed.

> Have you still been unable to duplicate this problem on a small i386 
> platform?

Yes right, I have been unable to duplicate the problem on small i386 box. 
What about your tests?


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-08 19:30                 ` Marcelo Tosatti
@ 2004-09-09  3:06                   ` Ray Bryant
  2004-09-09  2:14                     ` Marcelo Tosatti
  2004-09-09  3:09                     ` William Lee Irwin III
  0 siblings, 2 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-09  3:06 UTC (permalink / raw)
  To: Marcelo Tosatti
  Cc: Con Kolivas, Andrew Morton, linux-kernel, linux-mm, riel, piggin, mbligh

Marcelo,

For what it is worth, here are the benchmark results for the kernel with the 
patch I discussed before, along with the previous 2.6.9-rc1-mm3 results:

Kernel Version 2.6.9-rc1-mm3:
         Total I/O   Avg Swap   min    max     pg cache    min    max
        ----------- --------- ------- ------  --------- ------- -------
    0   274.80 MB/s  10511 MB (  5644, 14492)  13293 MB (  8596, 17156)
   20   267.02 MB/s  12624 MB (  5578, 16287)  15298 MB (  8468, 18889)
   40   267.66 MB/s  13541 MB (  6619, 17461)  16199 MB (  9393, 20044)
   60   233.73 MB/s  18094 MB ( 16550, 19676)  20629 MB ( 19103, 22192)
   80   213.64 MB/s  20950 MB ( 15844, 22977)  23450 MB ( 18496, 25440)
  100   164.58 MB/s  26004 MB ( 26004, 26004)  28410 MB ( 28327, 28455)

Kernel Version 2.6.9-rc1-mm3-kdb-nrmap:
         Total I/O   Avg Swap   min    max     pg cache    min    max
        ----------- --------- ------- ------  --------- ------- -------
    0   286.93 MB/s   7288 MB (  4847, 14536)  10122 MB (  7771, 17138)
   20   252.43 MB/s  13305 MB (  3950, 18337)  15938 MB (  6866, 20876)
   40   268.52 MB/s  11538 MB (  5333, 17298)  14238 MB (  8247, 19836)
   60   242.72 MB/s  16367 MB (  8652, 21217)  18909 MB ( 11514, 23561)
   80   212.94 MB/s  19424 MB (  5632, 24047)  21937 MB (  8567, 26469)
  100   161.66 MB/s  26006 MB ( 26004, 26007)  28445 MB ( 28407, 28471)

Except for the swappiness = 20 case, things are a smallish bit better for
the modified kernel than 2.6.9-rc1-mm3.  Clearly we haven't found the root of 
this problem yet.

Have you still been unable to duplicate this problem on a small i386 platform?
-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-09  3:06                   ` Ray Bryant
  2004-09-09  2:14                     ` Marcelo Tosatti
@ 2004-09-09  3:09                     ` William Lee Irwin III
  2004-09-09 14:16                       ` Ray Bryant
  2004-09-28  1:54                       ` Ray Bryant
  1 sibling, 2 replies; 46+ messages in thread
From: William Lee Irwin III @ 2004-09-09  3:09 UTC (permalink / raw)
  To: Ray Bryant
  Cc: Marcelo Tosatti, Con Kolivas, Andrew Morton, linux-kernel,
	linux-mm, riel, piggin

On Wed, Sep 08, 2004 at 10:06:20PM -0500, Ray Bryant wrote:
> For what it is worth, here are the benchmark results for the kernel with 
> the patch I discussed before, along with the previous 2.6.9-rc1-mm3 results:
[...]
> Except for the swappiness = 20 case, things are a smallish bit better for
> the modified kernel than 2.6.9-rc1-mm3.  Clearly we haven't found the root 
> of this problem yet.
> Have you still been unable to duplicate this problem on a small i386 
> platform?

Please log periodic snapshots of /proc/vmstat during runs on kernel
versions before and after major behavioral shifts.


-- wli
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-09  3:09                     ` William Lee Irwin III
@ 2004-09-09 14:16                       ` Ray Bryant
  2004-09-09 17:23                         ` William Lee Irwin III
  2004-09-28  1:54                       ` Ray Bryant
  1 sibling, 1 reply; 46+ messages in thread
From: Ray Bryant @ 2004-09-09 14:16 UTC (permalink / raw)
  To: William Lee Irwin III
  Cc: Marcelo Tosatti, Con Kolivas, Andrew Morton, linux-kernel,
	linux-mm, riel, piggin

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



William Lee Irwin III wrote:

> 
> Please log periodic snapshots of /proc/vmstat during runs on kernel
> versions before and after major behavioral shifts.
> 
> 
> -- wli
>

wli,

Attached is the output you requested for two kernel versions: 2.6.8.1-mm4 and 
2.6.9-rc1-mm3 + the nrmap_patch (that patch didn't make much difference so 
this should be good enough for comparison purposes, and it was the kernel I 
had built.)

Because there are so many parameters in /proc/vmstat, I had to split the
output up (more or less arbitarily) into three files to get something you 
could actually look at with an editor.  Even then it requires 100 columns or so.

Data in the files was observed every 10 s for the duration of the runs.
The first line of each file is a summary line, the next lines are incremental,
except for the nr_* stats, which are assumed to be absolute numbers.
Corresponding lines of each of the three output files per run were printed.
at the same time.

Data file names in the attached archive are of the form:

vmstat.$s.$t.$f.$v

where s=swappiness, here 0, 60, or 100.
       t=trial       here always 5
       f=file        1, 2, or 3 for the three output files per run
       v=version     kernel version

There is a script, compare.csh in the archive that can be run to edit 
corresponding files for each version.  It cycles through the list examining 
corresponding files foreach swapiness level and foreach output file.

The benchmark output for kernel version v is in reduce.out.$v, for reference.

I can post the perl script that was used to create this output, if there is 
interest.

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

[-- Attachment #2: vmstat.tar.bz2 --]
[-- Type: application/x-bzip2, Size: 25830 bytes --]

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-09  2:14                     ` Marcelo Tosatti
@ 2004-09-09 14:21                       ` Ray Bryant
  0 siblings, 0 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-09 14:21 UTC (permalink / raw)
  To: Marcelo Tosatti
  Cc: Con Kolivas, Andrew Morton, linux-kernel, linux-mm, riel, piggin, mbligh


Marcelo Tosatti wrote:

> 
>>Have you still been unable to duplicate this problem on a small i386 
>>platform?
> 
> 
> Yes right, I have been unable to duplicate the problem on small i386 box. 
> What about your tests?
> 
> 
>

I haven't had time to try on i386 yet.  I guess I will have to.
Thanks for trying, anyway.

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-09 14:16                       ` Ray Bryant
@ 2004-09-09 17:23                         ` William Lee Irwin III
  0 siblings, 0 replies; 46+ messages in thread
From: William Lee Irwin III @ 2004-09-09 17:23 UTC (permalink / raw)
  To: Ray Bryant
  Cc: Marcelo Tosatti, Con Kolivas, Andrew Morton, linux-kernel,
	linux-mm, riel, piggin

William Lee Irwin III wrote:
>> Please log periodic snapshots of /proc/vmstat during runs on kernel
>> versions before and after major behavioral shifts.

On Thu, Sep 09, 2004 at 09:16:08AM -0500, Ray Bryant wrote:
> Attached is the output you requested for two kernel versions: 2.6.8.1-mm4 
> and 2.6.9-rc1-mm3 + the nrmap_patch (that patch didn't make much difference 
> so this should be good enough for comparison purposes, and it was the 
> kernel I had built.)
> Because there are so many parameters in /proc/vmstat, I had to split the
> output up (more or less arbitarily) into three files to get something you 
> could actually look at with an editor.  Even then it requires 100 columns 
> or so.

This will do fine. I'll examine these for anomalous maintenance of
statistics and/or operational variables used to drive page replacement.

Thanks.


-- wli
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-09  3:09                     ` William Lee Irwin III
  2004-09-09 14:16                       ` Ray Bryant
@ 2004-09-28  1:54                       ` Ray Bryant
  2004-09-28  3:36                         ` Nick Piggin
  1 sibling, 1 reply; 46+ messages in thread
From: Ray Bryant @ 2004-09-28  1:54 UTC (permalink / raw)
  To: piggin
  Cc: William Lee Irwin III, Marcelo Tosatti, Con Kolivas,
	Andrew Morton, linux-kernel, linux-mm, riel

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

Nick,

As reported to you elsewhere (and duplicated here to get on this thread),
application of the patch you sent (attached) dramatically changes the
swappiness behavior of the 2.6.9-rc1 (and presumably the rc2) kernel.

Here are the updated results:

Previously:

Kernel Version 2.6.9-rc1-mm3:
         Total I/O   Avg Swap   min    max     pg cache    min    max
        ----------- --------- ------- ------  --------- ------- -------
    0   274.80 MB/s  10511 MB (  5644, 14492)  13293 MB (  8596, 17156)
   20   267.02 MB/s  12624 MB (  5578, 16287)  15298 MB (  8468, 18889)
   40   267.66 MB/s  13541 MB (  6619, 17461)  16199 MB (  9393, 20044)
   60   233.73 MB/s  18094 MB ( 16550, 19676)  20629 MB ( 19103, 22192)
   80   213.64 MB/s  20950 MB ( 15844, 22977)  23450 MB ( 18496, 25440)
  100   164.58 MB/s  26004 MB ( 26004, 26004)  28410 MB ( 28327, 28455)

With Nick Piggin et al fix:

Kernel Version: linux-2.6.9-rc1-mm3-kswapdfix

         Total I/O   Avg Swap   min    max     pg cache    min    max
        ----------- --------- ------- ------  --------- ------- -------
    0   279.97 MB/s     89 MB (    12,   265)   3062 MB (  2947,  3267)
   20   283.55 MB/s    161 MB (    15,   372)   3190 MB (  3011,  3427)
   40   282.32 MB/s    204 MB (     6,   407)   3187 MB (  2995,  3331)
   60   279.42 MB/s     72 MB (    15,   171)   3091 MB (  3027,  3155)
   80   283.34 MB/s    920 MB (   144,  3028)   3904 MB (  3106,  5957)
  100   160.55 MB/s  26008 MB ( 26007, 26008)  28473 MB ( 28455, 28487)

(The drop at swappiness of 60 may just be randomness, not sure it
is significant, but these results are all based on 5 trials.)

At any rate, this patch appears to fix the problems I was seeing before.
(See
	http://marc.theaimsgroup.com/?l=linux-kernel&m=109449778320333&w=2

for further details of the benchmark and the test environment).
-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

[-- Attachment #2: vm-no-wild-kswapd.patch --]
[-- Type: text/plain, Size: 1231 bytes --]




---

 linux-2.6-npiggin/mm/vmscan.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletion(-)

diff -puN mm/vmscan.c~vm-no-wild-kswapd mm/vmscan.c
--- linux-2.6/mm/vmscan.c~vm-no-wild-kswapd	2004-09-25 10:09:16.000000000 +1000
+++ linux-2.6-npiggin/mm/vmscan.c	2004-09-25 10:15:58.000000000 +1000
@@ -993,10 +993,13 @@ static int balance_pgdat(pg_data_t *pgda
 	int to_free = nr_pages;
 	int priority;
 	int i;
-	int total_scanned = 0, total_reclaimed = 0;
+	int total_scanned, total_reclaimed;
 	struct reclaim_state *reclaim_state = current->reclaim_state;
 	struct scan_control sc;
 
+loop_again:
+	total_scanned = 0;
+	total_reclaimed = 0;
 	sc.gfp_mask = GFP_KERNEL;
 	sc.may_writepage = 0;
 	sc.nr_mapped = read_page_state(nr_mapped);
@@ -1095,6 +1098,15 @@ scan:
 		 */
 		if (total_scanned && priority < DEF_PRIORITY - 2)
 			blk_congestion_wait(WRITE, HZ/10);
+
+		/*
+		 * We do this so kswapd doesn't build up large priorities for
+		 * example when it is freeing in parallel with allocators. It
+		 * matches the direct reclaim path behaviour in terms of impact
+		 * on zone->*_priority.
+		 */
+		if (total_reclaimed >= 32)
+			goto loop_again;
 	}
 out:
 	for (i = 0; i < pgdat->nr_zones; i++) {

_

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-28  1:54                       ` Ray Bryant
@ 2004-09-28  3:36                         ` Nick Piggin
  2004-09-29  0:36                           ` Nick Piggin
  0 siblings, 1 reply; 46+ messages in thread
From: Nick Piggin @ 2004-09-28  3:36 UTC (permalink / raw)
  To: Ray Bryant
  Cc: piggin, William Lee Irwin III, Marcelo Tosatti, Con Kolivas,
	Andrew Morton, linux-kernel, linux-mm, riel

Ray Bryant wrote:

> Nick,
>
> As reported to you elsewhere (and duplicated here to get on this thread),
> application of the patch you sent (attached) dramatically changes the
> swappiness behavior of the 2.6.9-rc1 (and presumably the rc2) kernel.
>
> Here are the updated results:
>
> Previously:
>
> Kernel Version 2.6.9-rc1-mm3:
>         Total I/O   Avg Swap   min    max     pg cache    min    max
>        ----------- --------- ------- ------  --------- ------- -------
>    0   274.80 MB/s  10511 MB (  5644, 14492)  13293 MB (  8596, 17156)
>   20   267.02 MB/s  12624 MB (  5578, 16287)  15298 MB (  8468, 18889)
>   40   267.66 MB/s  13541 MB (  6619, 17461)  16199 MB (  9393, 20044)
>   60   233.73 MB/s  18094 MB ( 16550, 19676)  20629 MB ( 19103, 22192)
>   80   213.64 MB/s  20950 MB ( 15844, 22977)  23450 MB ( 18496, 25440)
>  100   164.58 MB/s  26004 MB ( 26004, 26004)  28410 MB ( 28327, 28455)
>
> With Nick Piggin et al fix:
>
> Kernel Version: linux-2.6.9-rc1-mm3-kswapdfix
>
>         Total I/O   Avg Swap   min    max     pg cache    min    max
>        ----------- --------- ------- ------  --------- ------- -------
>    0   279.97 MB/s     89 MB (    12,   265)   3062 MB (  2947,  3267)
>   20   283.55 MB/s    161 MB (    15,   372)   3190 MB (  3011,  3427)
>   40   282.32 MB/s    204 MB (     6,   407)   3187 MB (  2995,  3331)
>   60   279.42 MB/s     72 MB (    15,   171)   3091 MB (  3027,  3155)
>   80   283.34 MB/s    920 MB (   144,  3028)   3904 MB (  3106,  5957)
>  100   160.55 MB/s  26008 MB ( 26007, 26008)  28473 MB ( 28455, 28487)
>
> (The drop at swappiness of 60 may just be randomness, not sure it
> is significant, but these results are all based on 5 trials.)
>
> At any rate, this patch appears to fix the problems I was seeing before.
> (See
>     http://marc.theaimsgroup.com/?l=linux-kernel&m=109449778320333&w=2
>
> for further details of the benchmark and the test environment).
>
>

Thanks Ray. From looking over your old results, it appears that -kswapdfix
probably has the nicest swappiness ramp, which is probably to be expected,
as the problem that is being fixed did exist in all other kernels you 
tested,
but the later ones just had other aggrivating changes.

The swappiness=60 weirdness might just be some obscure interaction with the
workload. If that is the case, it is probably not too important, however it
could be due to a possible oversight in my patch....

I'm not in front of the code right now, so I can't give you a new patch to
try yet... if you're up for modifying it yourself though: we possibly should
be updating "zone->prev_priority" after each 32 (SWAP_CLUSTER_MAX) pages 
freed.
So change the following:

==>    if (total_reclaimed >= 32)
==>       break;
    }
out:
    for (i = 0; i < pgdat->nr_zones; i++) {
       ... /* this updates zone->prev_priority */
    }
=>  if (!all_zones_ok)
=>     goto loop_again;
    return total_reclaimed;
}

so it looks something like that.

If you could run your tests again on that, it would be great.

Thanks
Nick
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-28  3:36                         ` Nick Piggin
@ 2004-09-29  0:36                           ` Nick Piggin
  2004-09-29  4:23                             ` Ray Bryant
  2004-09-30 17:15                             ` Ray Bryant
  0 siblings, 2 replies; 46+ messages in thread
From: Nick Piggin @ 2004-09-29  0:36 UTC (permalink / raw)
  To: Nick Piggin
  Cc: Ray Bryant, William Lee Irwin III, Marcelo Tosatti, Con Kolivas,
	Andrew Morton, linux-kernel, linux-mm, riel

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



Nick Piggin wrote:

>
> Thanks Ray. From looking over your old results, it appears that 
> -kswapdfix
> probably has the nicest swappiness ramp, which is probably to be 
> expected,
> as the problem that is being fixed did exist in all other kernels you 
> tested,
> but the later ones just had other aggrivating changes.
>
> The swappiness=60 weirdness might just be some obscure interaction 
> with the
> workload. If that is the case, it is probably not too important, 
> however it
> could be due to a possible oversight in my patch....
>

Here is a patch on top of the last one - if you can give it a test
some time, that would be great.

Thanks
Nick


[-- Attachment #2: vm-no-wild-kswapd2.patch --]
[-- Type: text/x-patch, Size: 1178 bytes --]




---

 linux-2.6-npiggin/mm/vmscan.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff -puN mm/vmscan.c~vm-no-wild-kswapd2 mm/vmscan.c
--- linux-2.6/mm/vmscan.c~vm-no-wild-kswapd2	2004-09-29 10:30:49.000000000 +1000
+++ linux-2.6-npiggin/mm/vmscan.c	2004-09-29 10:34:00.000000000 +1000
@@ -991,6 +991,7 @@ out:
 static int balance_pgdat(pg_data_t *pgdat, int nr_pages)
 {
 	int to_free = nr_pages;
+	int all_zones_ok;
 	int priority;
 	int i;
 	int total_scanned, total_reclaimed;
@@ -1013,10 +1014,11 @@ loop_again:
 	}
 
 	for (priority = DEF_PRIORITY; priority >= 0; priority--) {
-		int all_zones_ok = 1;
 		int end_zone = 0;	/* Inclusive.  0 = ZONE_DMA */
 		unsigned long lru_pages = 0;
 
+		all_zones_ok = 1;
+
 		if (nr_pages == 0) {
 			/*
 			 * Scan in the highmem->dma direction for the highest
@@ -1106,7 +1108,7 @@ scan:
 		 * on zone->*_priority.
 		 */
 		if (total_reclaimed >= SWAP_CLUSTER_MAX)
-			goto loop_again;
+			break;
 	}
 out:
 	for (i = 0; i < pgdat->nr_zones; i++) {
@@ -1114,6 +1116,9 @@ out:
 
 		zone->prev_priority = zone->temp_priority;
 	}
+	if (!all_zones_ok)
+		goto loop_again;
+
 	return total_reclaimed;
 }
 

_

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-29  0:36                           ` Nick Piggin
@ 2004-09-29  4:23                             ` Ray Bryant
  2004-09-30 17:15                             ` Ray Bryant
  1 sibling, 0 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-29  4:23 UTC (permalink / raw)
  To: Nick Piggin
  Cc: Nick Piggin, William Lee Irwin III, Marcelo Tosatti, Con Kolivas,
	Andrew Morton, linux-kernel, linux-mm, riel

Nick Piggin wrote:
> 
> 
> Nick Piggin wrote:
> 
>>
>> Thanks Ray. From looking over your old results, it appears that 
>> -kswapdfix
>> probably has the nicest swappiness ramp, which is probably to be 
>> expected,
>> as the problem that is being fixed did exist in all other kernels you 
>> tested,
>> but the later ones just had other aggrivating changes.
>>
>> The swappiness=60 weirdness might just be some obscure interaction 
>> with the
>> workload. If that is the case, it is probably not too important, 
>> however it
>> could be due to a possible oversight in my patch....
>>
> 
> Here is a patch on top of the last one - if you can give it a test
> some time, that would be great.
> 
> Thanks
> Nick
> 
> 

Nick,

I'll put it on my list of TODO's.  FYI, a full test like the ones I have been
running, at 6 swappiness levels, takes around 5 hours of machine time, so it
sometimes we have to wait for a slot that big to open up.  :-)

Ray
> ------------------------------------------------------------------------
> 
> 
> 
> 
> ---
> 
>  linux-2.6-npiggin/mm/vmscan.c |    9 +++++++--
>  1 files changed, 7 insertions(+), 2 deletions(-)
> 
> diff -puN mm/vmscan.c~vm-no-wild-kswapd2 mm/vmscan.c
> --- linux-2.6/mm/vmscan.c~vm-no-wild-kswapd2	2004-09-29 10:30:49.000000000 +1000
> +++ linux-2.6-npiggin/mm/vmscan.c	2004-09-29 10:34:00.000000000 +1000
> @@ -991,6 +991,7 @@ out:
>  static int balance_pgdat(pg_data_t *pgdat, int nr_pages)
>  {
>  	int to_free = nr_pages;
> +	int all_zones_ok;
>  	int priority;
>  	int i;
>  	int total_scanned, total_reclaimed;
> @@ -1013,10 +1014,11 @@ loop_again:
>  	}
>  
>  	for (priority = DEF_PRIORITY; priority >= 0; priority--) {
> -		int all_zones_ok = 1;
>  		int end_zone = 0;	/* Inclusive.  0 = ZONE_DMA */
>  		unsigned long lru_pages = 0;
>  
> +		all_zones_ok = 1;
> +
>  		if (nr_pages == 0) {
>  			/*
>  			 * Scan in the highmem->dma direction for the highest
> @@ -1106,7 +1108,7 @@ scan:
>  		 * on zone->*_priority.
>  		 */
>  		if (total_reclaimed >= SWAP_CLUSTER_MAX)
> -			goto loop_again;
> +			break;
>  	}
>  out:
>  	for (i = 0; i < pgdat->nr_zones; i++) {
> @@ -1114,6 +1116,9 @@ out:
>  
>  		zone->prev_priority = zone->temp_priority;
>  	}
> +	if (!all_zones_ok)
> +		goto loop_again;
> +
>  	return total_reclaimed;
>  }
>  
> 
> _


-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

* Re: swapping and the value of /proc/sys/vm/swappiness
  2004-09-29  0:36                           ` Nick Piggin
  2004-09-29  4:23                             ` Ray Bryant
@ 2004-09-30 17:15                             ` Ray Bryant
  1 sibling, 0 replies; 46+ messages in thread
From: Ray Bryant @ 2004-09-30 17:15 UTC (permalink / raw)
  To: Nick Piggin
  Cc: Nick Piggin, William Lee Irwin III, Marcelo Tosatti, Con Kolivas,
	Andrew Morton, linux-kernel, linux-mm, riel

Nick Piggin wrote:
> 
> 
> Nick Piggin wrote:
> 
>>
>> Thanks Ray. From looking over your old results, it appears that 
>> -kswapdfix
>> probably has the nicest swappiness ramp, which is probably to be 
>> expected,
>> as the problem that is being fixed did exist in all other kernels you 
>> tested,
>> but the later ones just had other aggrivating changes.
>>
>> The swappiness=60 weirdness might just be some obscure interaction 
>> with the
>> workload. If that is the case, it is probably not too important, 
>> however it
>> could be due to a possible oversight in my patch....
>>
> 
> Here is a patch on top of the last one - if you can give it a test
> some time, that would be great.
> 
> Thanks
> Nick
> 
> 

Hi Nick,

Here are the results for the kswapd2 patch, along with the previous version 
and the original 2.6.9-rc1-mm3 test.  It pretty much looks like a wash between
the kswapd and kswapd2 patches.

Kernel Version 2.6.9-rc1-mm3:
         Total I/O   Avg Swap   min    max     pg cache    min    max
        ----------- --------- ------- ------  --------- ------- -------
    0   274.80 MB/s  10511 MB (  5644, 14492)  13293 MB (  8596, 17156)
   20   267.02 MB/s  12624 MB (  5578, 16287)  15298 MB (  8468, 18889)
   40   267.66 MB/s  13541 MB (  6619, 17461)  16199 MB (  9393, 20044)
   60   233.73 MB/s  18094 MB ( 16550, 19676)  20629 MB ( 19103, 22192)
   80   213.64 MB/s  20950 MB ( 15844, 22977)  23450 MB ( 18496, 25440)
  100   164.58 MB/s  26004 MB ( 26004, 26004)  28410 MB ( 28327, 28455)


Kernel Version 2.6.9-rc1-mm3-kdb-kswapdfix:
         Total I/O   Avg Swap   min    max     pg cache    min    max
        ----------- --------- ------- ------  --------- ------- -------
    0   279.97 MB/s     89 MB (    12,   265)   3062 MB (  2947,  3267)
   20   283.55 MB/s    161 MB (    15,   372)   3190 MB (  3011,  3427)
   40   282.32 MB/s    204 MB (     6,   407)   3187 MB (  2995,  3331)
   60   279.42 MB/s     72 MB (    15,   171)   3091 MB (  3027,  3155)
   80   283.34 MB/s    920 MB (   144,  3028)   3904 MB (  3106,  5957)
  100   160.55 MB/s  26008 MB ( 26007, 26008)  28473 MB ( 28455, 28487)

Kernel Version 2.6.9-rc1-mm3-kdb-kswapdfix2:
         Total I/O   Avg Swap   min    max     pg cache    min    max
        ----------- --------- ------- ------  --------- ------- -------
    0   282.71 MB/s    247 MB (     8,   691)   3248 MB (  2995,  3636)
   20   281.96 MB/s    127 MB (     3,   300)   3097 MB (  2931,  3283)
   40   282.24 MB/s    252 MB (    16,   417)   3270 MB (  3059,  3475)
   60   281.27 MB/s    404 MB (   106,  1070)   3414 MB (  3139,  4068)
   80   281.30 MB/s    494 MB (   204,   662)   3485 MB (  3187,  3635)
  100   160.35 MB/s  26003 MB ( 26003, 26003)  28477 MB ( 28407, 28519)

-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2004-09-30 17:15 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-06 19:11 swapping and the value of /proc/sys/vm/swappiness Ray Bryant
2004-09-06 20:10 ` Andrew Morton
2004-09-06 21:22   ` Ray Bryant
2004-09-06 21:36     ` Andrew Morton
2004-09-06 22:37     ` William Lee Irwin III
2004-09-06 23:51       ` Nick Piggin
2004-09-07  0:31         ` Ray Bryant
2004-09-06 22:48 ` William Lee Irwin III
2004-09-06 23:09 ` Con Kolivas
2004-09-06 23:27   ` Andrew Morton
2004-09-06 23:34     ` Con Kolivas
2004-09-07  0:03       ` Marcelo Tosatti
2004-09-07  1:34         ` Con Kolivas
2004-09-07 10:38         ` Nick Piggin
2004-09-07 10:56           ` Con Kolivas
2004-09-08 16:45             ` Marcelo Tosatti
2004-09-09  1:12               ` Con Kolivas
2004-09-07 17:03           ` Ray Bryant
2004-09-07 21:20         ` Marcelo Tosatti
2004-09-08  2:18           ` Marcelo Tosatti
2004-09-08 14:20           ` Ray Bryant
2004-09-08 16:54             ` Marcelo Tosatti
2004-09-08 19:35               ` Ray Bryant
2004-09-08 19:30                 ` Marcelo Tosatti
2004-09-09  3:06                   ` Ray Bryant
2004-09-09  2:14                     ` Marcelo Tosatti
2004-09-09 14:21                       ` Ray Bryant
2004-09-09  3:09                     ` William Lee Irwin III
2004-09-09 14:16                       ` Ray Bryant
2004-09-09 17:23                         ` William Lee Irwin III
2004-09-28  1:54                       ` Ray Bryant
2004-09-28  3:36                         ` Nick Piggin
2004-09-29  0:36                           ` Nick Piggin
2004-09-29  4:23                             ` Ray Bryant
2004-09-30 17:15                             ` Ray Bryant
2004-09-08 17:31             ` Martin J. Bligh
2004-09-08 18:04               ` Rik van Riel
2004-09-08 19:50                 ` Diego Calleja
2004-09-08 21:10                   ` Martin J. Bligh
2004-09-08 21:55                     ` Diego Calleja
2004-09-08 22:20                       ` Martin J. Bligh
2004-09-08 23:22                         ` Rik van Riel
2004-09-08 22:28                     ` Alan Cox
2004-09-08 23:42                       ` Martin J. Bligh
2004-09-08 19:54               ` Ray Bryant
2004-09-08 15:19           ` Ray Bryant

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