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:	Tue, 25 Mar 2008 15:23:09 +0100
From:	"Bart Van Assche" <bart.vanassche@...il.com>
To:	"Sanders, Rob M." <sanders-rob@....com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Performance changes between 2.6.13 and 2.6.23

On Tue, Mar 25, 2008 at 2:52 PM, Sanders, Rob M. <sanders-rob@....com> wrote:
>   Each process is single threaded, although each process is built with the
>  -lpthread library.  For this particular application I would expect the
>  bottleneck to be in I/O (between processes) bound.  I hadn't thought
>  about trying to boot YDL4 using the new kernel, I'll try that, and I'll
>  look at the lmench2 and interbench.  Thanks....

In that case it might be interesting to observe the number of context
switches per second caused by the different processes. If the product
of the context switch time reported by lmbench2 and the number of
context switches per second is more than about 0.1, this means that a
lot of time is spent in just context switching and the application
probably should be optimized to cause less context switches. This
holds for any OS.

On a Linux system you can observe the number of context switches
performed by all processes e.g. via the following bash script:

interval=5; last=""; while true; do ctxt=$(while read col1 col2 rest;
do if [ $col1 = ctxt ]; then echo $col2; fi; done </proc/stat); if [
"$last" != "" ]; then echo $(((ctxt-last)/interval)); fi; last=$ctxt;
sleep $interval; done

The above script uses as much bash built-ins as possible such that it
causes as few context switches as possible.

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