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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 3 Dec 2015 10:08:11 +0000
From:	"Pradeep Goswami (Pradeep Kumar Goswami)" 
	<Pradeep.Goswami@...eadtrum.com>
To:	"rebecca@...roid.com" <rebecca@...roid.com>,
	"vdavydov@...allels.com" <vdavydov@...allels.com>,
	"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
	"vbabka@...e.cz" <vbabka@...e.cz>
CC:	"linux-mm@...ck.org" <linux-mm@...ck.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"sanjeev.yadav@...eatrum.com" <sanjeev.yadav@...eatrum.com>
Subject: [PATCH]mm:Correctly update number of rotated pages on active list.

This patch corrects the number of pages which are rotated on active list.
The counter for rotated pages effects the number of pages
to be scanned on active pages list in  low memory situations.

Signed-off-by: Pradeep Goswami <pradeep.goswami@...edtrum.com>
Cc: Rebecca Schultz Zavin <rebecca@...roid.com>
Cc: Vladimir Davydov <vdavydov@...allels.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>
---
--- a/mm/vmscan.c       2015-11-18 20:55:38.208838142 +0800
+++ b/mm/vmscan.c       2015-11-19 14:37:31.189838998 +0800
@@ -1806,7 +1806,6 @@ static void shrink_active_list(unsigned
 
                if (page_referenced(page, 0, sc->target_mem_cgroup,
                                    &vm_flags)) {
-                       nr_rotated += hpage_nr_pages(page);
                        /*  
                         * Identify referenced, file-backed active pages and 
                         * give them one more trip around the active list. So
@@ -1818,6 +1817,7 @@ static void shrink_active_list(unsigned
                         */  
                        if ((vm_flags & VM_EXEC) && page_is_file_cache(page)) {
                                list_add(&page->lru, &l_active);
+                               nr_rotated += hpage_nr_pages(page);
                                continue;
                        }   
                }   

Thanks,
Pradeep.--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ