Главная страница


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)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Re: Troubles with time speed.   Andrey Voloshin   26 Oct 2004 20:40:36 
 Re: Troubles with time speed.   Alexander S. Usov   27 Oct 2004 01:01:08 
 Re: Troubles with time speed.   Andrey Voloshin   27 Oct 2004 02:28:31 
 Re: Troubles with time speed.   Constantin Stefanov   27 Oct 2004 11:40:19 
 Re: Troubles with time speed.   Andrey Voloshin   27 Oct 2004 16:26:26 
 Re: Troubles with time speed.   Constantin Stefanov   27 Oct 2004 16:41:10 
 Re: Troubles with time speed.   Andrey Voloshin   27 Oct 2004 17:12:57 
 Re: Troubles with time speed.   Andrey Blochintsev   27 Oct 2004 18:34:22 
 Troubles with time speed.   Andrey Voloshin   01 Nov 2004 04:35:00 
Архивное /ru.unix.bsd/6577693b4d61.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional