login
Header Space

 
 

Re: [PATCH]dose it make get_swap_page(mm/swapfiles.c) good performance ?, kernel<2.6.22.9>.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <ohyama_sec@...>
Cc: <linux-kernel@...>
Date: Saturday, October 6, 2007 - 11:10 am

On Sat, 6 Oct 2007, ohyama_sec@ariel-networks.com wrote:

Thanks for making the suggestion.  I think you are right in what you
say, but that nevertheless we should not make the change you suggest.

The idea behind the swap priorities is that we use partitions or
swapfiles with high priorities before going to use those with lower
priorities.  That could be useful, for example, if the high priority
swap partitions are on fast disks, and the lower priority partitions
on slower disks, ones we'd really prefer to avoid using normally.

With your change, yes, once get_swap_page() fails to find a slot in
the last area at a particular priority, it will proceed to the next
lower priority: you're right that it'll probably find a swap cluster
there much more easily than by going back to the top priority as it
does; but that would then go against the priorities - get_swap_page()
itself would be quicker, but swap I/O would be slower (if those
priorities are indeed according to the speed of the disks).

To get the get_swap_page() speedup you want, simply add
more swap partitions or swapfiles at the _same_ priority.

Hugh

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH]dose it make get_swap_page(mm/swapfiles.c) good p..., Hugh Dickins, (Sat Oct 6, 11:10 am)
speck-geostationary