ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: timer_resolution и swi4: clock sio


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: timer_resolution и swi4: clock sio
  • From: Andrei Nigmatulin <andrei.nigmatulin@xxxxxxxxx>
  • Date: Fri, 20 Mar 2009 19:25:35 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=Ut4CrW1Fg/rcnC9YwfxhCACwHqkibLR7gjmSI0W/r+c=; b=wGGvoEzkZ1QSs0OmQMyaLdogmKYBzJ4UGBJAlP7926iToUSSkGE9XoM/WA44N6WDfy T+tR0TUQA8AFLEZt3RSnkecWEb1HpuAiOYXX96MZzD4t+rHMb/cD4w+JklxONkOHvBK1 X8deHrmXwGa8AuDmOTHzsNGLWcKn/NlJO4PeY=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=Ebakg39bNVOF4kWoqysgnC/x8ZuSlJ86heAG2+/RrN+8LePRVeWWM/LBPzU1mS4m0F sZD1qJILAJt/x7XEV61EJCtYrs3g1cKtzzFevigmpEIpmxDlWEVOT2ELwRngeXZ8tElD fAzA8FTep1U0Qq3urvifslcKIIr8Mo8REoaNA=
  • In-reply-to: <87ab7gdwiq.wl%catap@xxxxxxxx>
  • References: <543362361.20090320171313@xxxxxxxxxxxxx> <200903201823.36671.andrei.nigmatulin@xxxxxxxxx> <87ab7gdwiq.wl%catap@xxxxxxxx>

On Friday 20 March 2009 18:49, Kirill A. Korinskiy wrote:
> At Fri, 20 Mar 2009 18:23:36 +0300,
>
> Andrei Nigmatulin <andrei.nigmatulin@xxxxxxxxx> wrote:
> > А что, во FreeBSD gettimeofday() все еще syscall ?
>
> А где он нет? Как можно без cs получить доступ к rtc?

Как минимум в x86_64 linux.

Через tsc регистр (rdtsc или более удобная версия rdstcp на amd).

Если не ошибаюсь, на powerpc есть аналогичная функциональность.


-- 
Andrei Nigmatulin
GPG PUB KEY 6449830D

Now I lay me down to sleep(3)
Pray the OS my core to keep
If I die before I wake
Pray the Disk my core to take


 




Copyright © Lexa Software, 1996-2009.