lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.0912222032360.6879@localhost.localdomain>
Date:	Tue, 22 Dec 2009 20:42:41 -0800 (PST)
From:	Linus Torvalds <torvalds@...ux-foundation.org>
To:	Tejun Heo <tj@...nel.org>
cc:	Peter Zijlstra <peterz@...radead.org>, awalls@...ix.net,
	linux-kernel@...r.kernel.org, jeff@...zik.org, mingo@...e.hu,
	akpm@...ux-foundation.org, jens.axboe@...cle.com,
	rusty@...tcorp.com.au, cl@...ux-foundation.org,
	dhowells@...hat.com, arjan@...ux.intel.com, avi@...hat.com,
	johannes@...solutions.net, andi@...stfloor.org
Subject: Re: workqueue thing



On Wed, 23 Dec 2009, Tejun Heo wrote:
> 
> So, if we can have a mehanism which can solve these issues, it's an
> obvious plus.  Shifting complexity out of peripheral code to better
> crafted and managed core code is the right thing to do and it will
> shift a lot of complexity out of peripheral codes.

I really think this is key. I don't think Peter really has worked much 
outside of very core code (direct CPU-related stuff), and hasn't seen the 
kind of annoying problems our current workqueue code has.

Half the kernel is drivers. And 95% of all workqueue users are those 
drivers.

Workqueues generally aren't about heavy CPU usage, although some workqueue 
usage has scalability issues. And the most common scalability problem is 
not "I need more than one CPU", but often "I need to run even though 
another workqueue entry is blocked on IO" - iow, it's not about lacking 
CPU power, it's about in-fighting with other workqueue users.

That said, if we can improve on this further, I'd be all for it. I'd love 
to have some generic async model that really works. So far, our async 
models have tended to not really work out well, whether they be softirq's 
or kernel threads (many of the same issues: some subsystems start tons of 
kernel threads just because one kernel thread blocks, not because you need 
multi-processor CPU usage per se). And AIO/threadlets never got anywhere 
etc etc.

		Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ