Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753117Ab3HCURL (ORCPT ); Sat, 3 Aug 2013 16:17:11 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:34329 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752933Ab3HCURJ (ORCPT ); Sat, 3 Aug 2013 16:17:09 -0400 Message-ID: <51FD653A.3060004@jp.fujitsu.com> Date: Sat, 03 Aug 2013 16:16:58 -0400 From: KOSAKI Motohiro User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: mhocko@suse.cz CC: kosaki.motohiro@jp.fujitsu.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com, kamezawa.hiroyu@jp.fujitsu.com, bp@suse.de, dave@linux.vnet.ibm.com Subject: Re: [PATCH resend] drop_caches: add some documentation and info message References: <1374842669-22844-1-git-send-email-mhocko@suse.cz> <20130729135743.c04224fb5d8e64b2730d8263@linux-foundation.org> <51F9D1F6.4080001@jp.fujitsu.com> <20130731201708.efa5ae87.akpm@linux-foundation.org> <20130802073304.GA17746@dhcp22.suse.cz> In-Reply-To: <20130802073304.GA17746@dhcp22.suse.cz> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1562 Lines: 32 >>> You missed the "!". I'm proposing that setting the new bit 2 will >>> permit people to prevent the new printk if it is causing them problems. >> >> No I don't. I'm sure almost all abuse users think our usage is correct. Then, >> I can imagine all crazy applications start to use this flag eventually. > > I guess we do not care about those. If somebody wants to shoot his feet > then we cannot do much about it. The primary motivation was to find out > those that think this is right and they are willing to change the setup > once they know this is not the right way to do things. > > I think that giving a way to suppress the warning is a good step. Log > level might be to coarse and sysctl would be an overkill. When Dave Hansen reported this issue originally, he explained a lot of userland developer misuse /proc/drop_caches because they don't understand what drop_caches do. So, if they never understand the fact, why can we trust them? I have no idea. Or, if you have different motivation w/ Dave, please let me know it. While the purpose is to shoot misuse, I don't think we can trust userland app. If "If somebody wants to shoot his feet then we cannot do much about it." is true, this patch is useless. OK, we still catch the right user. But we never want to know who is the right users, right? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/