Re: gettimeofday() in hping



Hi,

Ivan Voras wrote:
Stefan Lambrev wrote:

I do not have HEPT on the servers that I test, but simple test on my laptop shows
that hping can generate with ACPI-fast ~4MB/s traffic, 5MB/s with HPET
and 8MB/s with TSC.

How much can Linux handle?
Will install ubuntu on the same machine and let you know, but my experience shows that FreeBSD + TSC
have the same performance as Linux.

>I didn't check dummy time counter.

If you do, it would give a nice indicator of how much the time counters are expensive in both absolute terms and relative to the rest of the stuff the program does (network IO). The "dummy" timecounter just increments a number when called, no time keeping is involved.


Here are the max speeds I can reach with different counters (on the test server):

i8254 - 3.660 MB/s
ACPI-fast - 7.137 MB/s
TSC - 12.519 MB/s
dummy - 12.366 MB/s

--

Best Wishes,
Stefan Lambrev
ICQ# 24134177

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: gettimeofday() in hping
    ... Will install ubuntu on the same machine and let you know, but my experience shows that FreeBSD + TSC ... I guess the default as it is not set anywhere (in linux it can be changed only during boot time i think) ... Calibrating delay using timer specific routine.. ... ACPI-fast - 7.137 MB/s ...
    (freebsd-hackers)
  • Re: TSC cannot be used as a time source?
    ... > Incorrect TSC synchronization on an SMP system. ... >I installed the server I used the same timesource I use on other ... Time keeping in Linux is done by an interrupt which occurs regularly ... of the counter at each of the interrupts. ...
    (Fedora)
  • RE: TSC cannot be used as a time source?
    ... An excellent explanation, I never knew that is how it worked. ... TSC cannot be used as a time source? ... Time keeping in Linux is done by an interrupt which occurs regularly ... of the counter at each of the interrupts. ...
    (Fedora)
  • Re: mysql benchmarks
    ... Both linux and freebsd numbers were taken from the ... >>Can you try TSC timer on FreeBSD? ... >>timer boosts performance of super-smack significantly. ...
    (freebsd-performance)
  • Re: measuring clock cycles per second
    ... on Linux and one of things that still needs to be done. ... TSC and other CPU counter events are not working because they are ...
    (comp.os.linux.development.apps)