swap: improve swap I/O rate
Subsystems (3)
cover swap: improve swap I/O rate
From: Ehrhardt Christian <[email protected]>
From: Christian Ehrhardt <[email protected]>
In an memory overcommitment scneario with KVM I ran into a lot of wiats for swap. While checking the I/O done on the swap disks I found almost all I/Os to be done as single page 4k request. Despite the fact that swap in is a batch of 1<<page-cluster pages as swap readahead and swap out is a list of pages written in shrink_page_list.
[1/2 swap in improvment]
The read patch shows improvements of up to 50% swap throughput, much happier guest systems and even when running with comparable throughput a lot I/O per seconds saved leaving resources in the SAN for other consumers.
[2/2 documentation]
While doing so I also realized that the documentation for proc/sys/vm/page-cluster is no more matching the code
[missing patch #3]
I tried to get a similar patch working for swap out in shrink_page_list. And it worked in functional terms, but the additional mergin was negligible. Maybe the cond_resched triggers much mor often than I expected, I'm open for suggestions regarding improving the pagout I/O sizes as well.
Kind regards,
Christian Ehrhardt
Christian Ehrhardt (2):
swap: allow swap readahead to be merged
documentation: update how page-cluster affects swap I/O
Documentation/sysctl/vm.txt | 12 ++++++++++-- mm/swap_state.c | 5 +++++ 2 files changed, 15 insertions(+), 2 deletions(-)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
PATCH 1/2 swap: allow swap readahead to be merged
From: Christian Ehrhardt <[email protected]>
Swap readahead works fine, but the I/O to disk is almost always done in page size requests, despite the fact that readahead submits 1<<page-cluster pages at a time.
On older kernels the old per device plugging behavior might have captured this and merged the requests, but currently all comes down to much more I/Os than required.
On a single device this might not be an issue, but as soon as a server runs on shared san resources savin I/Os not only improves swapin throughput but also provides a lower resource utilization.
With a load running KVM in a lot of memory overcommitment (the hot memory is 1.5 times the host memory) swapping throughput improves significantly and the lead feels more responsive as well as achieves more throughput.
In a test setup with 16 swap disks running blocktrace on one of those disks shows the improved merging:
Prior:
Reads Queued: 560,888, 2,243MiB Writes Queued: 226,242, 904,968KiB Read Dispatches: 544,701, 2,243MiB Write Dispatches: 159,318, 904,968KiB Reads Requeued: 0 Writes Requeued: 0 Reads Completed: 544,716, 2,243MiB Writes Completed: 159,321, 904,980KiB Read Merges: 16,187, 64,748KiB Write Merges: 61,744, 246,976KiB IO unplugs: 149,614 Timer unplugs: 2,940
With the patch:
Reads Queued: 734,315, 2,937MiB Writes Queued: 300,188, 1,200MiB Read Dispatches: 214,972, 2,937MiB Write Dispatches: 215,176, 1,200MiB Reads Requeued: 0 Writes Requeued: 0 Reads Completed: 214,971, 2,937MiB Writes Completed: 215,177, 1,200MiB Read Merges: 519,343, 2,077MiB Write Merges: 73,325, 293,300KiB IO unplugs: 337,130 Timer unplugs: 11,184
--- mm/swap_state.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
mm/swap_state.c +5 -0
@@ -14,6 +14,7 @@#include <linux/init.h> #include <linux/pagemap.h> #include <linux/backing-dev.h> +#include <linux/blkdev.h> #include <linux/pagevec.h> #include <linux/migrate.h> #include <linux/page_cgroup.h>
@@ -376,6 +377,7 @@ struct page *swapin_readahead(swp_entry_t entry, gfp_t gfp_mask,unsigned long offset =swp_offset (entry);unsigned long start_offset, end_offset;unsigned long mask = (1UL << page_cluster) -1 ; +struct blk_plug plug;/* Read a page_cluster sized and aligned cluster around offset. */ start_offset = offset & ~mask;
@@ -383,6 +385,7 @@ struct page *swapin_readahead(swp_entry_t entry, gfp_t gfp_mask,if (!start_offset)/* First page is swap header. */ start_offset++; +blk_start_plug (&plug);for (offset = start_offset; offset <= end_offset ; offset++) {/* Ok, do the async read-ahead now */ page = read_swap_cache_async(swp_entry(swp_type(entry), offset),
@@ -391,6 +394,8 @@ struct page *swapin_readahead(swp_entry_t entry, gfp_t gfp_mask,continue ;page_cache_release (page); } +blk_finish_plug (&plug); +lru_add_drain ();/* Push any new pages onto the LRU now */ return read_swap_cache_async (entry, gfp_mask, vma, addr); }
Signature · 8 lines
1.7.0.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [PATCH 1/2] swap: allow swap readahead to be merged
Quoted 28 lines · On 05/14/2012 08:58 PM, [email protected] wrote:
From: Christian Ehrhardt <[email protected]>
Swap readahead works fine, but the I/O to disk is almost always done in page size requests, despite the fact that readahead submits 1<<page-cluster pages at a time.
On older kernels the old per device plugging behavior might have captured this and merged the requests, but currently all comes down to much more I/Os than required.On a single device this might not be an issue, but as soon as a server runs on shared san resources savin I/Os not only improves swapin throughput but also provides a lower resource utilization.
With a load running KVM in a lot of memory overcommitment (the hot memory is 1.5 times the host memory) swapping throughput improves significantly and the lead feels more responsive as well as achieves more throughput.
In a test setup with 16 swap disks running blocktrace on one of those disks shows the improved merging:
Prior:Reads Queued: 560,888, 2,243MiB Writes Queued: 226,242, 904,968KiB Read Dispatches: 544,701, 2,243MiB Write Dispatches: 159,318, 904,968KiB Reads Requeued: 0 Writes Requeued: 0 Reads Completed: 544,716, 2,243MiB Writes Completed: 159,321, 904,980KiB Read Merges: 16,187, 64,748KiB Write Merges: 61,744, 246,976KiB IO unplugs: 149,614 Timer unplugs: 2,940With the patch:
Quoted 8 lines
Reads Queued: 734,315, 2,937MiB Writes Queued: 300,188, 1,200MiB Read Dispatches: 214,972, 2,937MiB Write Dispatches: 215,176, 1,200MiB Reads Requeued: 0 Writes Requeued: 0 Reads Completed: 214,971, 2,937MiB Writes Completed: 215,177, 1,200MiB Read Merges: 519,343, 2,077MiB Write Merges: 73,325, 293,300KiB IO unplugs: 337,130 Timer unplugs: 11,184Signed-off-by Christian Ehrhardt <[email protected]>
It does make sense to me.
Quoted 41 lines
--- mm/swap_state.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)mm/swap_state.c +5
-0@@ -14,6 +14,7 @@#include <linux/init.h> #include <linux/pagemap.h> #include <linux/backing-dev.h> +#include <linux/blkdev.h> #include <linux/pagevec.h> #include <linux/migrate.h> #include <linux/page_cgroup.h> @@ -376,6 +377,7 @@ struct page *swapin_readahead(swp_entry_t entry, gfp_t gfp_mask,unsigned long offset =swp_offset (entry);unsigned long start_offset, end_offset;unsigned long mask = (1UL << page_cluster) -1 ; +struct blk_plug plug;/* Read a page_cluster sized and aligned cluster around offset. */ start_offset = offset & ~mask;@@ -383,6 +385,7 @@ struct page *swapin_readahead(swp_entry_t entry, gfp_t gfp_mask,if (!start_offset)/* First page is swap header. */ start_offset++; +blk_start_plug (&plug);for (offset = start_offset; offset <= end_offset ; offset++) {/* Ok, do the async read-ahead now */ page = read_swap_cache_async(swp_entry(swp_type(entry), offset),@@ -391,6 +394,8 @@ struct page *swapin_readahead(swp_entry_t entry, gfp_t gfp_mask,continue ;page_cache_release (page); } +blk_finish_plug (&plug); +lru_add_drain ();/* Push any new pages onto the LRU now */ return read_swap_cache_async (entry, gfp_mask, vma, addr); }
Signature · 9 lines
Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [PATCH 1/2] swap: allow swap readahead to be merged
In reply to [email protected]Quoted 9 lines · On 05/14/2012 07:58 AM, [email protected] wrote:
From: Christian Ehrhardt<[email protected]>
Swap readahead works fine, but the I/O to disk is almost always done in page size requests, despite the fact that readahead submits 1<<page-cluster pages at a time.
On older kernels the old per device plugging behavior might have captured this and merged the requests, but currently all comes down to much more I/Os than required.
Quoted 5 lines
On a single device this might not be an issue, but as soon as a server runs on shared san resources savin I/Os not only improves swapin throughput but also provides a lower resource utilization.
Signed-off-by Christian Ehrhardt<[email protected]>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
PATCH 2/2 documentation: update how page-cluster affects swap I/O
In reply to [email protected]From: Christian Ehrhardt <[email protected]>
Fix of the documentation of /proc/sys/vm/page-cluster to match the behavior of the code and add some comments about what the tunable will change in that behavior.
--- Documentation/sysctl/vm.txt | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)
Documentation/sysctl/vm.txt +10 -2
@@ -574,16 +574,24 @@ of physical RAM. See above. page-cluster -page-cluster controls the number of pages which are written to swap in -a single attempt. The swap I/O size. +page-cluster controls the number of pages up to which consecutive pages (if +available) are read in from swap in a single attempt. This is the swap +counterpart to page cache readahead. +The mentioned consecutivity is not in terms of virtual/physical addresses, +but consecutive on swap space - that means they were swapped out together. It is a logarithmic value - setting it to zero means "1 page", setting it to 1 means "2 pages", setting it to 2 means "4 pages", etc. +Zero disables swap readahead completely. The default value is three (eight pages at a time). There may be some small benefits in tuning this to a different value if your workload is swap-intensive. +Lower values mean lower latencies for initial faults, but at the same time +extra faults and I/O delays for following faults if they would have been part of +that consecutive pages readahead would have brought in. + ============================================================= panic_on_oom
Signature · 8 lines
1.7.0.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [PATCH 2/2] documentation: update how page-cluster affects swap I/O
Quoted 16 lines · On 05/14/2012 08:58 PM, [email protected] wrote:
From: Christian Ehrhardt <[email protected]>
Fix of the documentation of
/proc/sys/vm/page-clusterto match the behavior of the code and add some comments about what the tunable will change in that behavior.Signed-off-by Christian Ehrhardt <[email protected]>--- Documentation/sysctl/vm.txt | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)Documentation/sysctl/vm.txt +0
-0
Documentation/sysctl/vm.txt of physical RAM. See above. · line 578
Quoted 7 lines
Documentation/sysctl/vm.txt +2
-2@@ -574,16 +574,24 @@ of physical RAM. See above. page-cluster -page-cluster controls the number of pages which are written to swap in -a single attempt. The swap I/O size. +page-cluster controls the number of pages up to which consecutive pages (if +available) are read in from swap in a single attempt. This is the swap
"If available" would be wrong in next kernel because recently Rik submit following patch,
mm: make swapin readahead skip over holes
http://marc.info/?l=linux-mm&m=132743264912987&w=4
Quoted 9 lines
Documentation/sysctl/vm.txt +4
-0+counterpart to page cache readahead. +The mentioned consecutivity is not in terms of virtual/physical addresses, +but consecutive on swap space - that means they were swapped out together. It is a logarithmic value - setting it to zero means "1 page", setting it to 1 means "2 pages", setting it to 2 means "4 pages", etc. +Zero disables swap readahead completely. The default value is three (eight pages at a time). There may be some
Documentation/sysctl/vm.txt of physical RAM. See above. · line 597
Quoted 10 lines
Documentation/sysctl/vm.txt +4
-0small benefits in tuning this to a different value if your workload is swap-intensive. +Lower values mean lower latencies for initial faults, but at the same time +extra faults and I/O delays for following faults if they would have been part of +that consecutive pages readahead would have brought in. + ============================================================= panic_on_oom
Otherwise, Looks good to me.
Signature · 9 lines
Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [PATCH 2/2] documentation: update how page-cluster affects swap I/O
Quoted 29 lines · Minchan Kim
Quoted 16 lines · On 05/14/2012 08:58 PM, [email protected] wrote:
From: Christian Ehrhardt<[email protected]>
Fix of the documentation of
/proc/sys/vm/page-clusterto match the behavior of the code and add some comments about what the tunable will change in that behavior.Signed-off-by Christian Ehrhardt<[email protected]>--- Documentation/sysctl/vm.txt | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)Documentation/sysctl/vm.txt +0
-0Documentation/sysctl/vm.txt of physical RAM. See above. · line 578
Quoted 7 lines
Documentation/sysctl/vm.txt +2
-2@@ -574,16 +574,24 @@ of physical RAM. See above. page-cluster -page-cluster controls the number of pages which are written to swap in -a single attempt. The swap I/O size. +page-cluster controls the number of pages up to which consecutive pages (if +available) are read in from swap in a single attempt. This is the swap"If available" would be wrong in next kernel because recently Rik submit following patch,
Quoted 4 lines
mm: make swapin readahead skip over holes
http://marc.info/?l=linux-mm&m=132743264912987&w=4
You're right - its not severely wrong, but if we are fixing the documentation we can do it right. I'll send a 2nd version of the patch series with this adapted and all the acks I got so far added.
Signature · 9 lines
GrA 1/4 sse / regards, Christian Ehrhardt IBM Linux Technology Center, System z Linux Performance -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 15 lines · On 05/14/2012 08:58 PM, [email protected] wrote:
From: Ehrhardt Christian <[email protected]>
From: Christian Ehrhardt <[email protected]>
In an memory overcommitment scneario with KVM I ran into a lot of wiats for swap. While checking the I/O done on the swap disks I found almost all I/Os to be done as single page 4k request. Despite the fact that swap in is a batch of 1<<page-cluster pages as swap readahead and swap out is a list of pages written in
shrink_page_list.[1/2 swap in improvment]
The read patch shows improvements of up to 50% swap throughput, much happier guest systems and even when running with comparable throughput a lot I/O per seconds saved leaving resources in the SAN for other consumers.
Quoted 7 lines
[2/2 documentation]
While doing so I also realized that the documentation for proc/sys/vm/page-cluster is no more matching the code[missing patch #3]
I tried to get a similar patch working for swap out inshrink_page_list. And it worked in functional terms, but the additional mergin was negligible.
I think we have already done it.
Look at shrink_mem_cgroup_zone which ends up calling shrink_page_list so we already have applied I/O plugging.
Quoted 2 lines
Maybe the
cond_reschedtriggers much mor often than I expected, I'm open for suggestions regarding improving the pagout I/O sizes as well.
We could enhance write out by batch like ext4_bio_write_page.
Quoted 20 lines
Kind regards,
Christian EhrhardtChristian Ehrhardt (2):
swap: allow swap readahead to be merged
documentation: update how page-cluster affects swap I/ODocumentation/sysctl/vm.txt | 12 ++++++++++-- mm/swap_state.c | 5 +++++ 2 files changed, 15 insertions(+), 2 deletions(-)--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Signature · 9 lines
Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
[...]
Quoted 9 lines
Quoted 3 lines
[missing patch #3]
I tried to get a similar patch working for swap out inshrink_page_list. And it worked in functional terms, but the additional mergin was negligible.I think we have already done it.
Look atshrink_mem_cgroup_zonewhich ends up callingshrink_page_listso we already have applied I/O plugging.
I saw that code and it is part of the kernel I used to test my patches.
But despite that code and my additional experiments of plug/unplug in shrink_page_list the effective I/O size of swap write stays at almost 4k.
Thereby so far I can tell you that the plugs in shrink_page_list and shrink_mem_cgroup_zone aren't sufficient - at least for my case. You saw the blocktrace summaries in my first mail, an excerpt of a write submission stream looks like that:
94,4 10 465 0.023520923 116 A W 28868648 + 8 <- (94,5)
28868456
94,5 10 466 0.023521173 116 Q W 28868648 + 8 [kswapd0] 94,5 10 467 0.023522048 116 G W 28868648 + 8 [kswapd0] 94,5 10 468 0.023522235 116 P N [kswapd0] 94,5 10 469 0.023759892 116 I W 28868648 + 8 ( 237844) [kswapd0] 94,5 10 470 0.023760079 116 U N [kswapd0] 1 94,5 10 471 0.023760360 116 D W 28868648 + 8 ( 468) [kswapd0] 94,4 10 472 0.023891235 116 A W 28868656 + 8 <- (94,5) 28868464 94,5 10 473 0.023891454 116 Q W 28868656 + 8 [kswapd0] 94,5 10 474 0.023892110 116 G W 28868656 + 8 [kswapd0] 94,5 10 475 0.023944610 116 I W 28868656 + 8 ( 52500) [kswapd0] 94,5 10 476 0.023944735 116 U N [kswapd0] 1 94,5 10 477 0.023944892 116 D W 28868656 + 8 ( 282) [kswapd0] 94,5 16 19 0.024023192 16033 C W 28868648 + 8 ( 262832) [0] 94,5 24 37 0.024196752 14526 C W 28868656 + 8 ( 251860) [0]
[...]
But we can split this discussion from my other two patches and I would be happy to provide my test environment for further tests if there are new suggestions/patches/...
Quoted 6 lines
Quoted 2 lines
Maybe the
cond_reschedtriggers much mor often than I expected, I'm open for suggestions regarding improving the pagout I/O sizes as well.We could enhance write out by batch like
ext4_bio_write_page.
Do you mean the changes brought by "bd2d0210 ext4: use bio layer instead of buffer layer in mpage_da_submit_io" ?
Signature · 9 lines
GrA 1/4 sse / regards, Christian Ehrhardt IBM Linux Technology Center, System z Linux Performance -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 14 lines · Christian Ehrhardt
[...]
Quoted 11 lines
Quoted 4 lines
[missing patch #3]
I tried to get a similar patch working for swap out inshrink_page_list. And
it worked in functional terms, but the additional mergin was negligible.I think we have already done it.
Look atshrink_mem_cgroup_zonewhich ends up callingshrink_page_listso we already have applied
I/O plugging.
Quoted 3 lines
I saw that code and it is part of the kernel I used to test my patches. But despite that code and my additional experiments of plug/unplug in
shrink_page_listthe effective I/O size of swap write stays at almost 4k.
I meant your plugging in shrink_page_list is redundant
Quoted 3 lines
Thereby so far I can tell you that the plugs in
shrink_page_listandshrink_mem_cgroup_zonearen't sufficient - at least for my case.
Yeb.
Quoted 35 lines
You saw the blocktrace summaries in my first mail, an excerpt of a write submission stream looks like that:
94,4 10 465 0.023520923 116 A W 28868648 + 8 <- (94,5)
2886845694,5 10 466 0.023521173 116 Q W 28868648 + 8 [kswapd0] 94,5 10 467 0.023522048 116 G W 28868648 + 8 [kswapd0] 94,5 10 468 0.023522235 116 P N [kswapd0] 94,5 10 469 0.023759892 116 I W 28868648 + 8 ( 237844) [kswapd0] 94,5 10 470 0.023760079 116 U N [kswapd0] 1 94,5 10 471 0.023760360 116 D W 28868648 + 8 ( 468) [kswapd0] 94,4 10 472 0.023891235 116 A W 28868656 + 8 <- (94,5) 28868464 94,5 10 473 0.023891454 116 Q W 28868656 + 8 [kswapd0] 94,5 10 474 0.023892110 116 G W 28868656 + 8 [kswapd0] 94,5 10 475 0.023944610 116 I W 28868656 + 8 ( 52500) [kswapd0] 94,5 10 476 0.023944735 116 U N [kswapd0] 1 94,5 10 477 0.023944892 116 D W 28868656 + 8 ( 282) [kswapd0] 94,5 16 19 0.024023192 16033 C W 28868648 + 8 ( 262832) [0] 94,5 24 37 0.024196752 14526 C W 28868656 + 8 ( 251860) [0][...]
But we can split this discussion from my other two patches and I would be happy to provide my test environment for further tests if there are new suggestions/patches/...
Quoted 5 lines
Quoted 3 lines
Maybe the
cond_reschedtriggers much mor often than I expected, I'm open for
suggestions regarding improving the pagout I/O sizes as well.
Quoted 5 lines
Quoted 2 lines
We could enhance write out by batch like
ext4_bio_write_page.Do you mean the changes brought by "
bd2d0210ext4: use bio layer instead of buffer layer inmpage_da_submit_io" ?
Yeb, I think it's helpful for your case but it's not trivial to implement it, IMHO.
Quoted 3 lines
Signature · 9 lines
Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 25 lines · On 2012-05-14 13:58, [email protected] wrote:
From: Ehrhardt Christian <[email protected]>
From: Christian Ehrhardt <[email protected]>
In an memory overcommitment scneario with KVM I ran into a lot of wiats for swap. While checking the I/O done on the swap disks I found almost all I/Os to be done as single page 4k request. Despite the fact that swap in is a batch of 1<<page-cluster pages as swap readahead and swap out is a list of pages written in
shrink_page_list.[1/2 swap in improvment]
The read patch shows improvements of up to 50% swap throughput, much happier guest systems and even when running with comparable throughput a lot I/O per seconds saved leaving resources in the SAN for other consumers.[2/2 documentation]
While doing so I also realized that the documentation for proc/sys/vm/page-cluster is no more matching the code[missing patch #3]
I tried to get a similar patch working for swap out inshrink_page_list. And it worked in functional terms, but the additional mergin was negligible. Maybe thecond_reschedtriggers much mor often than I expected, I'm open for suggestions regarding improving the pagout I/O sizes as well.
Quoted 7 lines
Kind regards,
Christian EhrhardtChristian Ehrhardt (2):
swap: allow swap readahead to be merged
documentation: update how page-cluster affects swap I/O
Looks good to me, you can add my acked-by to both of them.
Signature · 8 lines
Jens Axboe -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>