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]
Date:	Fri, 13 Oct 2006 09:51:51 -0500 (CDT)
From:	Chase Venters <chase.venters@...entec.com>
To:	James Courtier-Dutton <James@...erbug.co.uk>
cc:	Arjan van de Ven <arjan@...radead.org>,
	John Richard Moser <nigelenki@...cast.net>,
	linux-kernel@...r.kernel.org
Subject: Re: Can context switches be faster?

On Fri, 13 Oct 2006, James Courtier-Dutton wrote:

> Arjan van de Ven wrote:
>> On Thu, 2006-10-12 at 14:25 -0400, John Richard Moser wrote:
>>
>>
>>>   - Does the current code act on these behaviors, or just flush all
>>>     cache regardless?
>>
>> the cache flushing is a per architecture property. On x86, the cache
>> flushing isn't needed; but a TLB flush is. Depending on your hardware
>> that can be expensive as well.
>>
>
> So, that is needed for a full process context switch to another process.
> Is the context switch between threads quicker as it should not need to
> flush the TLB?

Indeed. This is also true for switching from a process to a kernel thread 
and back, because kernel threads don't have their own user-space virtual 
memory; they just live inside the kernel virtual memory mapped into every 
process.

> James
>

Thanks,
Chase
-
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