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 -
| Andrew Morton | Re: 2.6.24-rc6-mm1 |
| Satyam Sharma | Re: 2.6.23-rc4-mm1 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 010/196] Chinese: add translation of Codingstyle |
git: | |
| Chris Ortman | [FEATURE REQUEST] git-svn format-patch |
| David | [StGit PATCH 00/13] Eliminate 'top' and 'bottom' files |
| Scott Chacon | Git Community Book |
| H. Peter Anvin | Re: kernel.org mirroring (Re: [GIT PULL] MMC update) |
| Richard Stallman | Real men don't attack straw men |
| Gregory Edigarov | How to re-build openssl with SHA1 support? |
| Xavier Mertens | newfs: cg 0: bad magic number |
| thacrazze | Multiboot Windows XP + OpenBSD doesnt work |
| Jens Axboe | [PATCH][RFC] fast file mapping for loop |
| David Miller | Re: [ANNOUNCE] Btrfs v0.12 released |
| Tony Jones | [RFC 1/28] Pass struct vfsmount to the inode_create LSM hook. |
| Andreas Dilger | Re: [PATCH 0/4] Fiemap, an extent mapping ioctl - round 2 |
