LWN.net Logo

Re: [PATCH, v10 3/3] cgroups: introduce timer slack controller

From:  Matthew Garrett <mjg-H+wXaHxf7aLQT0dZR+AlfA-AT-public.gmane.org>
To:  Peter Zijlstra <peterz-wEGCiKHe2LqWVfeAwA7xHQ-AT-public.gmane.org>
Subject:  Re: [PATCH, v10 3/3] cgroups: introduce timer slack controller
Date:  Mon, 17 Oct 2011 17:49:29 +0100
Message-ID:  <20111017164929.GA18620@srcf.ucam.org>
Cc:  Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ-AT-public.gmane.org>, Arjan van de Ven <arjan-VuQAYsv1563Yd54FQh9/CA-AT-public.gmane.org>, Lennart Poettering <mzxreary-uLTowLwuiw4b1SvskN2V4Q-AT-public.gmane.org>, Andrew Morton <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b-AT-public.gmane.org>, "Kirill A. Shutemov" <kirill-oKw7cIdHH8eLwutG50LtGA-AT-public.gmane.org>, Paul Menage <menage-hpIqsD4AKlfQT0dZR+AlfA-AT-public.gmane.org>, Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A-AT-public.gmane.org>, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA-AT-public.gmane.org, jacob.jun.pan-VuQAYsv1563Yd54FQh9/CA-AT-public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA-AT-public.gmane.org, Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA-AT-public.gmane.org>, linux-api-u79uwXL29TY76Z2rM5mHXA-AT-public.gmane.org, Kay Sievers <kay.sievers-tD+1rO4QERM-AT-public.gmane.org>, harald-H+wXaHxf7aLQT0dZR+AlfA-AT-public.gmane.org, david-o55+BOBDEFg-AT-public.gmane.org, greg-U8xfFu+wG4EAvxtiuMwx3w-AT-public.gmane.org
Archive-link:  Article, Thread

On Mon, Oct 17, 2011 at 06:36:44PM +0200, Peter Zijlstra wrote:
> On Mon, 2011-10-17 at 16:31 +0100, Matthew Garrett wrote:
> > On Mon, Oct 17, 2011 at 05:21:10PM +0200, Peter Zijlstra wrote:
> > 
> > > Well what other cases are there? Can we enumerate them and come up 
> > > with similar solutions?
> > 
> > Javascript has timers. We execute rather a lot of javascript from 
> > sources we can't influence at all.
> 
> Which brings me to yet another gripe I've got with firefox, _WHY_ does
> it run javascript for tabs I can't see? Simply freeze the interpreter.

Because people expect gmail to provide them with status updates even if 
it's not the foreground tab.

> Then again, what does JavaScript do with these timers? I don't really
> see how javascript/random-native-binary are really different, something
> needs doing. What something?

I agree that the thing that needs doing probably involves web developers 
and threats of implied violence, but I suspect that web developers are 
being created faster than we can reeducate them.

-- 
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org


(Log in to post comments)

Copyright © 2011, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds