|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Alexander S. Usov 2:5020/400 27 Oct 2004 01:01:08 To : Andrey Voloshin Subject : Re: Troubles with time speed. -------------------------------------------------------------------------------- Andrey Voloshin wrote: > ====================================================================== > dummynet performs its task once per timer tick. The granularity of oper- > ation is thus controlled by the kernel option > options HZ > whose default value (100) means a granularity of 10ms. For an > accurate simulation of high data rates it might be necessary to > reduce the timer > granularity to 1ms or less. Consider, however, that some interfaces > using programmed I/O may require a considerable time to output > packets. So, reducing the granularity too much might actually cause > ticks to be missed thus reducing the accuracy of operation. > ====================================================================== > Вот в моем случае акурратность работы шейпера только повысилась. > Чуть позжее распишу все подробно, там еще чую куча приколов есть, > а прямо сейчас меня интересубт чего делать с часами если > у меня HZ=10 > Пришлось пока вернутся обратно на 100. > Бо ооочень быстро секунды побежали ;)). HZ=100 <==> 1/100sec <==> 10ms HZ=1000 <==> 1/1000sec <==> 1ms Тебе его увеличивать надо, а не уменьшать ;) -- Best regards, Alexander. --- ifmail v.2.15dev5.3 * Origin: KVI (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/6577693b4d61.html, оценка из 5, голосов 10
|