From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753793Ab2AQNqo (ORCPT ); Tue, 17 Jan 2012 08:46:44 -0500 Received: from smtp.nokia.com ([147.243.1.48]:44144 "EHLO mgw-sa02.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753399Ab2AQNqn convert rfc822-to-8bit (ORCPT ); Tue, 17 Jan 2012 08:46:43 -0500 From: To: CC: , , , , , , , , , , , , , , Subject: RE: [PATCH v2 2/2] Memory notification pseudo-device module Thread-Topic: [PATCH v2 2/2] Memory notification pseudo-device module Thread-Index: AQHM1Rx+OvEMeHtKAEm6KWeO1Y1MiJYQkA4w Date: Tue, 17 Jan 2012 13:45:51 +0000 Message-ID: <84FF21A720B0874AA94B46D76DB9826904559397@008-AM1MPN1-003.mgdnok.nokia.com> References: <5b429d6c4d0a3ad06ec01193eab7edc98a03e0de.1326803859.git.leonid.moiseichuk@nokia.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.23.171] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginalArrivalTime: 17 Jan 2012 13:45:52.0822 (UTC) FILETIME=[54601560:01CCD51E] X-Nokia-AV: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Not only, here is many reasons: 1. publish code for review by people who knows how to do things and who can advise something valuable 2. to have one more update source in addition to memcg I used in n9 for libmemnotify and which works not I like to see (ideally drop memcg) 3. maybe someone needs similar solution, keep it internally = kill it. Now module looks pretty simple for me and maintainable. Plus one small issue fixed for swapinfo() So at least now it could be used for tracking activity and it is a good improvement. It also could be extended to report "memory pressure value" similar to Minchan's patch does if necessary. With Best Wishes, Leonid > -----Original Message----- > From: penberg@gmail.com [mailto:penberg@gmail.com] On Behalf Of ext > Pekka Enberg > Sent: 17 January, 2012 15:33 > To: Moiseichuk Leonid (Nokia-MP/Helsinki) > Cc: linux-mm@kvack.org; linux-kernel@vger.kernel.org; cesarb@cesarb.net; > kamezawa.hiroyu@jp.fujitsu.com; emunson@mgebm.net; > aarcange@redhat.com; riel@redhat.com; mel@csn.ul.ie; > rientjes@google.com; dima@android.com; gregkh@suse.de; > rebecca@android.com; san@google.com; akpm@linux-foundation.org; > Jaaskelainen Vesa (Nokia-MP/Helsinki) > Subject: Re: [PATCH v2 2/2] Memory notification pseudo-device module > > On Tue, Jan 17, 2012 at 3:22 PM, Leonid Moiseichuk > wrote: > > The memory notification (memnotify) device tracks level of memory > > utilization, active page set and notifies subscribed processes when > > consumption crossed specified threshold(s) up or down. It could be > > used on embedded devices to implementation of performance-cheap > memory > > reacting by using e.g. libmemnotify or similar user-space component. > > > > The minimal (250 ms) and maximal (15s) periods of reaction and > > granularity (~1.4% of memory size) could be tuned using module options. > > > > Signed-off-by: Leonid Moiseichuk > > Is the point of making this a misc device to keep the ABI compatible with N9? > Is the ABI documented? > > Pekka