lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 13 Aug 2008 11:21:16 +0900 From: Hisashi Hifumi <hifumi.hisashi@....ntt.co.jp> To: akpm@...ux-foundation.org Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org, linux-ext4@...r.kernel.org Subject: [PATCH] vmscan: set try_to_release_page's gfp_mask to 0 Hi. shrink_page_list passes gfp_mask to try_to_release_page. When shrink_page_list is called from kswapd or buddy system, gfp_mask is set and (gfp_mask & __GFP_WAIT) and (gfp_mask & __GFP_FS) check is positive. releasepage of jbd/jbd2(ext3/4, ocfs2) and XFS use this parameter. If try_to_free_page fails due to bh busy in jbd/jbd2, jbd/jbd2 lets a thread wait for committing transaction. I think this has big performance impacts for vmscan. So I modified shrink_page_list not to pass gfp_mask to try_to_release_page in ordered to improve vmscan performance. Thanks. Signed-off-by: Hisashi Hifumi <hifumi.hisashi@....ntt.co.jp> diff -Nrup linux-2.6.27-rc2.org/mm/vmscan.c linux-2.6.27-rc2.vmscan/mm/vmscan.c --- linux-2.6.27-rc2.org/mm/vmscan.c 2008-08-11 14:33:24.000000000 +0900 +++ linux-2.6.27-rc2.vmscan/mm/vmscan.c 2008-08-12 18:57:05.000000000 +0900 @@ -614,7 +614,7 @@ static unsigned long shrink_page_list(st * Otherwise, leave the page on the LRU so it is swappable. */ if (PagePrivate(page)) { - if (!try_to_release_page(page, sc->gfp_mask)) + if (!try_to_release_page(page, 0)) goto activate_locked; if (!mapping && page_count(page) == 1) { unlock_page(page); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists