Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760817AbZKZQ2e (ORCPT ); Thu, 26 Nov 2009 11:28:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755833AbZKZQ2d (ORCPT ); Thu, 26 Nov 2009 11:28:33 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:55064 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932715AbZKZQ2D (ORCPT ); Thu, 26 Nov 2009 11:28:03 -0500 From: "Kirill A. Shutemov" To: containers@lists.linux-foundation.org, linux-mm@kvack.org Cc: Paul Menage , Li Zefan , Andrew Morton , KAMEZAWA Hiroyuki , Balbir Singh , Pavel Emelyanov , linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: [PATCH RFC v0 3/3] memcg: implement memory thresholds Date: Thu, 26 Nov 2009 18:27:38 +0200 Message-Id: X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <8524ba285f6dd59cda939c28da523f344cdab3da.1259248846.git.kirill@shutemov.name> References: <8524ba285f6dd59cda939c28da523f344cdab3da.1259248846.git.kirill@shutemov.name> In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 707 Lines: 22 It allows to register multiple memory thresholds and gets notifications when it crosses. To register a threshold application need: - create an eventfd; - open file memory.usage_in_bytes of a cgroup - write string " " to cgroup.event_control. Application will be notified through eventfd when memory usage crosses threshold in any direction. Signed-off-by: Kirill A. Shutemov -- 1.6.5.3 -- 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/