<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 3: Lmbench scheduler increases latency</title><link href="https://sourceforge.net/p/lmbench/bugs/3/" rel="alternate"/><link href="https://sourceforge.net/p/lmbench/bugs/3/feed.atom" rel="self"/><id>https://sourceforge.net/p/lmbench/bugs/3/</id><updated>2006-11-27T14:55:18Z</updated><subtitle>Recent changes to 3: Lmbench scheduler increases latency</subtitle><entry><title>Lmbench scheduler increases latency</title><link href="https://sourceforge.net/p/lmbench/bugs/3/" rel="alternate"/><published>2006-11-27T14:55:18Z</published><updated>2006-11-27T14:55:18Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net30a1a29d5c528c8c34d8f4d63051269cb11fb54b</id><summary type="html">&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;</summary></entry></feed>