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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070215000447.GA23707@elte.hu>
Date:	Thu, 15 Feb 2007 01:04:47 +0100
From:	Ingo Molnar <mingo@...e.hu>
To:	Linus Torvalds <torvalds@...ux-foundation.org>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Arjan van de Ven <arjan@...radead.org>,
	Christoph Hellwig <hch@...radead.org>,
	Andrew Morton <akpm@....com.au>,
	Alan Cox <alan@...rguk.ukuu.org.uk>,
	Ulrich Drepper <drepper@...hat.com>,
	Zach Brown <zach.brown@...cle.com>,
	Evgeniy Polyakov <johnpol@....mipt.ru>,
	"David S. Miller" <davem@...emloft.net>,
	Benjamin LaHaise <bcrl@...ck.org>,
	Suparna Bhattacharya <suparna@...ibm.com>,
	Davide Libenzi <davidel@...ilserver.org>,
	Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [patch 05/11] syslets: core code


* Ingo Molnar <mingo@...e.hu> wrote:

> > You are not counting the whole setup cost there, then, because your 
> > setup cost is going to be at a minimum more expensive than the null 
> > system call.
> 
> hm, this one-time cost was never on my radar. [ It's really dwarved by 
> other startup costs (a single fork() takes 100 usecs, an exec() takes 
> 800 usecs.) ]

i really count this into the category of 'application startup', and thus 
it's is another type of 'cachemiss': the cost of having to bootstrap a 
new context. (Even though obviously we want this to go as fast as 
possible too.) Library startups, linking (even with prelink), etc., is 
quite expensive already - goes into the tens of milliseconds.

or if it's a new thread startup - where this cost would indeed be 
visible, if the thread exits straight after being startup up, and where 
this thread would want to do a single AIO, then shareable async heads 
(see my mail to Alan) ought to solve this. (But short-lifetime threads 
are not really a good idea in themselves.)

but the moment it's some fork()ed context, or even an exec()ed context, 
this cost is very small in comparisno. And who in their right mind 
starts up a whole new process just to do a single IO and then exit 
without doing any other processing? (so that the async setup cost would 
show up)

but, short-lived contexts, where this cost would be visible, are 
generally a really bad idea.

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