From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kirill A. Shutemov" Subject: Re: [PATCHSET v2 cgroup/for-3.12] cgroup: make cgroup_event specific to memcg Date: Mon, 26 Aug 2013 17:29:18 +0300 Message-ID: <20130826142918.GB14985@shutemov.name> References: <1376582550-12548-1-git-send-email-tj@kernel.org> <20130826141536.GA14985@shutemov.name> <20130826151747.GD25171@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20130826151747.GD25171-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Tejun Heo Cc: mhocko-AlSwsSmVLrQ@public.gmane.org, hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org On Mon, Aug 26, 2013 at 11:17:47AM -0400, Tejun Heo wrote: > Hello, > > On Mon, Aug 26, 2013 at 05:15:36PM +0300, Kirill A. Shutemov wrote: > > Few questions before I'll ack the patchset: > > What's the plan if we will need a similar capability in the future? > > Just a normal file modified event. > > > How would you implement memory thresholds today? > > Ditto. Just a normal file modified event when the threshold is > crossed. What about setting threshold itself? Do we a way to set it in inotify interface or you have something else in mind? -- Kirill A. Shutemov