ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Epiphanov Sergei <serpiph@nikiet.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] USB on 2.4.x
Date: Thu, 3 Feb 2005 13:58:27 +0300
Message-ID: <200502031358.32782.serpiph@nikiet.ru> (raw)
In-Reply-To: <4200FB6E.7050902@altlinux.com>


[-- Attachment #1.1: Type: text/plain, Size: 1446 bytes --]

В сообщении от 2 Февраль 2005 19:10 Anton Farygin написал:
> Что интересно - разброс на 2.4 явно больше, но на 2.6 явно выше
> результат, но при этом точность намного выше.
>
> Так может быть что-то не так в методике тестирования ?
>
> При чем независимо от интервала превышение примерно 1ms.

Я добавил в программу включение SCHED_FIFO с максимальным приоритетом,
но ничего не изменилось... 
сборка:
g++ -O3 -o speed speed.cpp

Запускаю под root, вижу следующее:
$ps axl | grep speed
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0  2560  2258 -100  -   2096   816 pause  S<+  pts/9      0:00 ./speed

Программа выдаёт следующее:

Cur=1107427818.387305s, Prev=1107427818.356308s, delta=  30.997ms
Cur=1107427818.418299s, Prev=1107427818.387305s, delta=  30.994ms
Cur=1107427818.449293s, Prev=1107427818.418299s, delta=  30.994ms
Cur=1107427818.480286s, Prev=1107427818.449293s, delta=  30.993ms
Cur=1107427818.511280s, Prev=1107427818.480286s, delta=  30.994ms
Cur=1107427818.542274s, Prev=1107427818.511280s, delta=  30.994ms
Cur=1107427818.573269s, Prev=1107427818.542274s, delta=  30.995ms
Cur=1107427818.604261s, Prev=1107427818.573269s, delta=  30.992ms
Cur=1107427818.635257s, Prev=1107427818.604261s, delta=  30.996ms

То есть либо что-то не так пишу, либо не понимаю ядро, либо ядро 2.6 использует
что-то иное для обеспечения близкого к realtime времени исполнения.

-- 
С уважением, Епифанов Сергей

[-- Attachment #1.2: speed.cpp.bz2 --]
[-- Type: application/x-bzip2, Size: 997 bytes --]

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

  parent reply	other threads:[~2005-02-03 10:58 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-01 22:14 Andrey Brindeew
2005-02-01 22:47 ` Vitaly Lipatov
2005-02-02  2:03   ` Ivan Fedorov
2005-02-02  5:46     ` Vitaly Lipatov
2005-02-02  7:17       ` Gleb Kulikov
2005-02-02 10:27         ` Alexandre Prokoudine
2005-02-02 14:45           ` Gleb Kulikov
2005-02-02 11:45         ` iLL
2005-02-02 12:06           ` Epiphanov Sergei
2005-02-02 12:45             ` iLL
2005-02-02 13:09               ` Epiphanov Sergei
2005-02-02 13:27                 ` Anton Farygin
2005-02-02 14:47                   ` Epiphanov Sergei
2005-02-02 16:10                     ` Anton Farygin
2005-02-03  8:21                       ` Epiphanov Sergei
2005-02-03 10:58                       ` Epiphanov Sergei [this message]
2005-02-03 12:33                         ` [sisyphus] timers on 2.6.x vs 2.4.x (was: Re: USB on 2.4.x) Sergey Vlasov
2005-02-03 13:41                           ` Epiphanov Sergei
2005-02-03 12:32                       ` [sisyphus] USB on 2.4.x Epiphanov Sergei
2005-02-02 14:43             ` Gleb Kulikov
2005-02-02 22:12               ` Vitaly Lipatov
2005-02-03  7:59                 ` Gleb Kulikov
2005-02-03  9:59                   ` Vitaly Lipatov
2005-02-07 19:20             ` Serge Pavlovsky
2005-02-02 14:39           ` Gleb Kulikov
2005-02-02 15:42         ` [sisyphus] " Konstantin A. Lepikhov
2005-02-02  7:34       ` [sisyphus] Mosix (was: USB on 2.4.x) iLL
2005-02-03  5:24   ` [sisyphus] USB on 2.4.x Andrey Brindeew
2005-02-03  5:34     ` Ivan Fedorov
2005-02-03  8:21       ` Valery V. Inozemtsev
2005-02-03 13:45         ` Anton Farygin
2005-02-08 17:10   ` Maxim Tyurin
2005-02-02  6:35 ` Alex Yustasov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200502031358.32782.serpiph@nikiet.ru \
    --to=serpiph@nikiet.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git