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: <48E0834D.6010608@google.com>
Date:	Mon, 29 Sep 2008 00:27:09 -0700
From:	dean gaudet <odo@...gle.com>
To:	Andi Kleen <andi@...stfloor.org>
CC:	Pardo <pardo@...gle.com>, linux-kernel@...r.kernel.org,
	mbligh@...gle.com, briangrant@...gle.com, nil@...gle.com,
	jyasskin@...gle.com
Subject: Re: Faster getcpu() and sched_getcpu()

Andi Kleen wrote:
> I'm still not sure why you say no redzone is that expensive? Do you
> have numbers?  I know it's a few instructions, but it shouldn't 
> be that expensive.
>
>   

it depends on the processor involved and the kernel config options --
i.e. if frame pointers are enabled then the stack frame guarantees a
store operation (push rbp) and on processors which do memops in-order
this delays the other memops in the vsyscall (i.e. testing the cache or
executing SIDT).  it was 2 or 3 cycles difference in most cases iirc.

-dean

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