From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH V2] Test compaction of mlocked memory Date: Thu, 23 Apr 2015 13:23:23 -0700 Message-ID: <20150423132323.a3bd1dcdc94a2da3ca06a30d@linux-foundation.org> References: <1429813301-27216-1-git-send-email-sjayaram@akamai.com> <20150423184134.GF2282@akamai.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150423184134.GF2282-JqFfY2XvxFXQT0dZR+AlfA@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Eric B Munson Cc: Sri Jayaramappa , Shuah Khan , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-api@vger.kernel.org On Thu, 23 Apr 2015 14:41:34 -0400 Eric B Munson wrote: > On Thu, 23 Apr 2015, Sri Jayaramappa wrote: > > > Commit commit 5bbe3547aa3b ("mm: allow compaction of unevictable pages") > > introduced a sysctl that allows userspace to enable scanning of locked > > pages for compaction. This patch introduces a new test which fragments > > main memory and attempts to allocate a number of huge pages to exercise > > this compaction logic. > > > > Tested on machines with up to 32 GB RAM. With the patch a much larger > > number of huge pages can be allocated than on the kernel without the > > patch. > > > > Example output: > > On a machine with 16 GB RAM: > > sudo make run_tests vm > > ... > > ----------------------- > > running compaction_test > > ----------------------- > > No of huge pages allocated = 3834 > > [PASS] > > ... > > > > Signed-off-by: Sri Jayaramappa > > Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > Cc: linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > Cc: Andrew Morton > > Cc: Eric B Munson > > Reviewed-by: Eric B Munson Acked-by: Andrew Morton I'm assuming that Shuah will process this one?