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: <c76f371a0912230017n7d3f5c89h849aa23efa6f75e5@mail.gmail.com>
Date:	Wed, 23 Dec 2009 09:17:07 +0100
From:	Stijn Devriendt <highguy@...il.com>
To:	Andi Kleen <andi@...stfloor.org>
Cc:	Peter Zijlstra <peterz@...radead.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Tejun Heo <tj@...nel.org>,
	Arjan van de Ven <arjan@...ux.intel.com>,
	Jens Axboe <jens.axboe@...cle.com>, awalls@...ix.net,
	linux-kernel@...r.kernel.org, jeff@...zik.org, mi@...per.es
Subject: Re: workqueue thing

On Tue, Dec 22, 2009 at 7:07 PM, Andi Kleen <andi@...stfloor.org> wrote:
> One reason I liked a more dynamic frame work for this is that it
> has the potential to be exposed to user space and allow automatic
> work partitioning there based on available cores.  User space
> has a lot more CPU consumption than the kernel.
>
Basically, this is exactly what I was trying to solve with my
sched_wait_block patch. It was broken in all ways, but the ultimate
goal was to have concurrency managed workqueues (to nick the term)
in userspace and have a way out when I/O hits the workqueue.

I'm currently in the progress of implementing this using perf_events
and hope to send a patch in the near future (probably asking for some
help to solve a couple of my issues).

> I think Grand Central Dispatch does something in this direction.
> TBB would probably also benfit
>
Exactly my goal.
I'd definately be happy if Tejun's work can be generalized to fit userspace
as well. My sched_wait_block patch did exactly what his sched_notifiers
do: notify the workqueue that a new thread should be scheduled to keep
the CPU busy. Although as I understand, Tejun's reason for scheduling
a new thread is rather to avoid deadlocks. Different thing, same way.

Stijn
--
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