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: <20080225123439.90645f2f.akpm@linux-foundation.org>
Date:	Mon, 25 Feb 2008 12:34:39 -0800
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	"J.C. Pizarro" <jcpiza@...il.com>
Cc:	"Rik van Riel" <riel@...hat.com>, "Mike Galbraith" <efault@....de>,
	LKML <linux-kernel@...r.kernel.org>,
	"Linus Torvalds" <torvalds@...ux-foundation.org>
Subject: Re: Please, put 64-bit counter per task and incr.by.one each ctxt
 switch.

On Sun, 24 Feb 2008 14:12:47 +0100 "J.C. Pizarro" <jcpiza@...il.com> wrote:

> It's statistic, yes, but it's a very important parameter for the CPU-scheduler.
> The CPU-scheduler will know the number of context switches of each task
>  before of to take a blind decision into infinitum!.

We already have these:

        unsigned long nvcsw, nivcsw; /* context switch counts */

in the task_struct.
--
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