From: Anton Vorontsov <anton.vorontsov@linaro.org>
To: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: linux-mm@kvack.org, Kyungmin Park <kyungmin.park@samsung.com>,
John Stultz <john.stultz@linaro.org>
Subject: Re: [announce] Timeout Based User-space Low Memory Killer Daemon
Date: Fri, 28 Dec 2012 14:48:01 -0800 [thread overview]
Message-ID: <20121228224800.GA14273@lizard.sbx05280.losalca.wayport.net> (raw)
In-Reply-To: <201212281527.43430.b.zolnierkie@samsung.com>
On Fri, Dec 28, 2012 at 03:27:43PM +0100, Bartlomiej Zolnierkiewicz wrote:
>
> Hi,
>
> I would like to announce the first public version of my timeout based
> user-space low memory killer daemon (tbulmkd). It is based on idea
> that user-space applications can be divided into two classes,
> foreground and background ones. Foreground processes are visible in
> graphical user interface (GUI) and therefore shouldn't be terminated
> first when memory usage gets too high. OTOH background processes are
> no longer visible in GUI and are pro-actively being killed to keep
> overall memory usage smaller. Actual daemon implementation is heavily
> based on the user-space low memory killer daemon (ulmkd) from Anton
> Vorontsov (http://thread.gmane.org/gmane.linux.kernel.mm/84302).
>
> The program is available at:
>
> https://github.com/bzolnier/tbulmkd
Wow, that's so great. Now it seems more like an Activity Manager.
I didn't look very close to it, but I see that you extensively use cgroups
to actually group the processes, i.e. 'daemons' cgroup, 'apps' cgroup.
So, it might be a very good start for truly cross-platform, truly generic
way to implement Activity Manager. :)
I'm surely interested in how it evolves, and will take a closer look soon.
Thanks!
> kernel/add-tbulmkd-entries.patch needs to be applied to the kernel
> that would be used with tbulmkd. It adds /proc/$pid/activity and
> /proc/$pid/activity_time files. Write '0' to activity file to mark
> the process as background one and '1' (the default value) to mark
> it as foreground one. Please note that this interface is just for
> a demonstration of tbulmkd functionality and will be changed in
> the future.
>
> Best regards,
> --
> Bartlomiej Zolnierkiewicz
> Samsung Poland R&D Center
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2012-12-28 22:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-28 14:27 Bartlomiej Zolnierkiewicz
2012-12-28 22:48 ` Anton Vorontsov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121228224800.GA14273@lizard.sbx05280.losalca.wayport.net \
--to=anton.vorontsov@linaro.org \
--cc=b.zolnierkie@samsung.com \
--cc=john.stultz@linaro.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox