Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2005 15:26:27 +0400
From:      dima <_pppp@mail.ru>
To:        Mao Shou Yan <david.mao@thomson.net>
Cc:        freebsd-net@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: polling in 4.11 vs 5.4
Message-ID:  <E1E7WvD-000LZD-00._pppp-mail-ru@f31.mail.ru>
In-Reply-To: <31021C278A7A6B4AB95E9A085C3552180FF7C5@bjngsmail01>

next in thread | previous in thread | raw e-mail | index | archive | help
>          I hope this is the right place that I post to!
> 
>  
> 
>          When I enabled polling in 5.4 and 4.11, I found that CPU load
> in 5.4 is much higher than 4.11. For example, suppose HZ is 5000, in 5.4
> the idle CPU is about 87%, but in 4.11, the idle CPU is about 99.9%. Is
> this right? Or the statistic is wrong in 4.11?
> 
>          BTW, ACPI is disabled under 5.4.
> 
> BTW, I found that context switch in 5.4 is much higher than 5.4 while
> enabling polling. (Using systat -vmstat 1)
> 
>          I'm looking forward your reply.
The polling code hasn't been changed since 4.11. I've posted a patch to resolve giant lock issue in it, but it wasn't merged. I don't have enough time by now to rewrite it according the opinions mentioned. But the cost of context switch is definitely higher on 5.x
HZ == 5000 is too much i think. 1000 is quite enough for network-intensive applications.

> 
>          Any response is welcome!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1E7WvD-000LZD-00._pppp-mail-ru>