<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 3: Lmbench scheduler increases latency</title><link>https://sourceforge.net/p/lmbench/bugs/3/</link><description>Recent changes to 3: Lmbench scheduler increases latency</description><atom:link href="https://sourceforge.net/p/lmbench/bugs/3/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 27 Nov 2006 14:55:18 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/lmbench/bugs/3/feed.rss" rel="self" type="application/rss+xml"/><item><title>Lmbench scheduler increases latency</title><link>https://sourceforge.net/p/lmbench/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Lmbench scheduler in lmbench-3.0-a7 is useful to get stable, reproducible results in SMP. But it was detected (see &lt;a href="http://marc.theaimsgroup.com/?l=linux-kernel&amp;amp;m=116304920822136&amp;amp;w=2\" rel="nofollow"&gt;http://marc.theaimsgroup.com/?l=linux-kernel&amp;amp;m=116304920822136&amp;amp;w=2\&lt;/a&gt;) that fork() latency reported by lmbench is much higher than real latency of fork()+sched_setaffinity(). It is because of a lot of unneeded functions is called in interval of time which was measured as a fork() function latency. The functions which could be moved out of time interval been measured are: getenv(), sysconf(), strcasecmp() (7 calls), malloc(), realloc() (in a loop) and sched_getaffinity(). &lt;br /&gt;
Lmbench is able to measure latency for Linux, Solaris, HPUX, IRIX, AIX but for Linux 35 lines are added in interval been measured including calls to malloc() twice, sched_getaffinity() and realloc() calls in a loop. As a result lmbench reports latency value 410 microseconds while correct latency 138 microseconds.&lt;br /&gt;
The patch for issue foxing is attached.&lt;br /&gt;
Leonid&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 27 Nov 2006 14:55:18 -0000</pubDate><guid>https://sourceforge.net30a1a29d5c528c8c34d8f4d63051269cb11fb54b</guid></item></channel></rss>