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: <20080416065451.78329e12@laptopd505.fenrus.org>
Date:	Wed, 16 Apr 2008 06:54:51 -0700
From:	Arjan van de Ven <arjan@...radead.org>
To:	Ingo Molnar <mingo@...e.hu>
Cc:	Andi Kleen <andi@...stfloor.org>,
	Denys Vlasenko <vda.linux@...glemail.com>,
	linux-kernel@...r.kernel.org
Subject: Re: Does process need to have a kernel-side stack all the time?

On Wed, 16 Apr 2008 14:47:28 +0200
Ingo Molnar <mingo@...e.hu> wrote:

> 
> * Andi Kleen <andi@...stfloor.org> wrote:
> 
> > Denys Vlasenko <vda.linux@...glemail.com> writes:
> > 
> > > A lot of effort went into minimizing of stack usage.
> > > If I understand it correctly, one of the reasons for this
> > > was to be efficient and not have lots of pages
> > > used for stacks when we have a lot of threads
> > > (tens of thousands).
> > 
> > Actually the real reason the 4K stacks were introduced IIRC was
> > that the VM is not very good at allocation of order > 0 pages and
> > that only using order 0 and not order 1 in normal operation
> > prevented some stalls.
> 
> no, the primary motivation Arjan and me started working on 4K stacks
> and implemented it was what Denys mentioned: i had a testcase that

well that and the fact that RH had customers who had major issues at fewer threads
with 8Kb versus fragmentation.
on 32 bit with a bunch of ram, there's just not enough lowmem around to not have it
fragmented to hell and back.


x86_64 is better off there, it doesn't really have lowmem, and also buddy works better
against fragmentation the bigger the zone it works with it seems
(or at least, the lower the ratio of long term pinned pages is)


-- 
If you want to reach me at my work email, use arjan@...ux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
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