From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1SoDDc-0000y6-B4 for ltp-list@lists.sourceforge.net; Mon, 09 Jul 2012 12:37:36 +0000 Received: from mail-pb0-f47.google.com ([209.85.160.47]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1SoDDW-0005YT-Og for ltp-list@lists.sourceforge.net; Mon, 09 Jul 2012 12:37:36 +0000 Received: by pbbrq2 with SMTP id rq2so18121985pbb.34 for ; Mon, 09 Jul 2012 05:37:24 -0700 (PDT) Message-ID: <4FFAD07D.6010703@casparzhang.com> Date: Mon, 09 Jul 2012 20:37:17 +0800 From: Caspar Zhang MIME-Version: 1.0 References: <1341827513-21908-1-git-send-email-caspar@casparzhang.com> <1341827513-21908-2-git-send-email-caspar@casparzhang.com> <4FFAC130.2090707@cn.fujitsu.com> In-Reply-To: <4FFAC130.2090707@cn.fujitsu.com> Subject: Re: [LTP] [PATCH 2/2] mm/lib: increase sleep time in ksm scanning List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: gaowanlong@cn.fujitsu.com Cc: LTP list On 07/09/2012 07:32 PM, Wanlong Gao wrote: > On 07/09/2012 05:51 PM, Caspar Zhang wrote: >> >> for some systems under pressure, we've observed that sleeping 5 seconds >> is not sufficient for completing ksm scanning, to fix this, we should >> give ksmd more time to scan the mergable pages by increasing sleeping >> time to 10s. > > If 5s is not enough, isn't we waiting here already? Sorry, I'm not catching you... :-( the problem currently we encounter is that if 5s given, all ksm values (pages_sharing, pages_shared, etc) might remain the same between before and after sleeping, so the wait_ksmd function could exit. But in fact the kernel could be busy under pressure and it just needs more than 5s to merge the same page. Using 10s as polling interval can make sure if ksm values remains the same between each loop, it should indicates that ksmd has done scanning correctly. Thanks, Caspar ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list