From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by kanga.kvack.org (Postfix) with ESMTP id 8913A8E0018 for ; Mon, 10 Dec 2018 16:30:54 -0500 (EST) Received: by mail-wr1-f72.google.com with SMTP id w16so3961151wrk.10 for ; Mon, 10 Dec 2018 13:30:54 -0800 (PST) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id h6sor98010wmc.2.2018.12.10.13.30.53 for (Google Transport Security); Mon, 10 Dec 2018 13:30:53 -0800 (PST) MIME-Version: 1.0 References: <76c6e92b-df49-d4b5-27f7-5f2013713727@suse.cz> <8b211f35-0722-cd94-1360-a2dd9fba351e@suse.cz> <20180829150136.GA10223@dhcp22.suse.cz> <20180829152716.GB10223@dhcp22.suse.cz> <6e3a9434-32f2-0388-e0c7-2bd1c2ebc8b1@suse.cz> <20181030152632.GG32673@dhcp22.suse.cz> <98305976-612f-cf6d-1377-2f9f045710a9@suse.cz> <3173eba8-8d7a-b9d7-7d23-38e6008ce2d6@suse.cz> In-Reply-To: From: Marinko Catovic Date: Mon, 10 Dec 2018 22:30:40 +0100 Message-ID: Subject: Re: Caching/buffers become useless after some time Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Vlastimil Babka Cc: Michal Hocko , linux-mm@kvack.org, Christopher Lameter > Currently I fail to manage this, since I do not know how to do step 2. > echo $PID > tasks writes into it and adds the PID, but how would one > remove the wrapper script's PID from there? any ideas on this perhaps? The workaround, otherwise working perfectly fine, causes huge problems there since I have to exclude certain processes from that tasklist. Basically I'd need to know how to remove a PID from the mountpoint, created by mount -t cgroup -o memory none $SOME_MOUNTPOINT mkdir $SOME_MOUNTPOINT/A echo 500M > $SOME_MOUNTPOINT/A/memory.limit_in_bytes aka remove a specific PID from $SOME_MOUNTPOINT/A/tasks