Skip to contentSkip to conversation

latencytests results on a Pentium133, again EXCELLENT, 2.1ms.:-)

DISCUSSION Benno Senoner 2 participants 3 messages Sep 16, 1999 – Sep 17, 1999 Sound

lore
Share & tools
lore
#0 lore raw

Hi, folks,
I performed more latency benchmarks on an old Pentium box:
P133 , mainboard Tyan Tomcat HX, 64MB RAM, harddisk IBM EIDE 6GB,
Soundcard TB Tropez plus, videocard S3 PCI.

To my surprise the results were excellent, 2.1ms ! ( 3x128 bytes audio buffer) (even if the jitter is a bit higher than on a PII400 , but anyway very good !)

I lowered the CPU load to 60% since cpuload€% made the box quite unusable (it's like running on a Pentium with 20-25Mhz :-))

look at the results here:

http://www.gardena.net/benno/linux/audio/2.2.10-p133-3x128/3x128.html

Seems that Benjamin was right: a P166MMX Laptop can deliver the 3-4ms latency. :-)

PS: I noticed that the TB Tropez plus, takes a few msecs to startup, (after the first write() call) therefore just write an empty audio buffer before entering the main loop.

regards,
Benno.

--
Benno Senoner
E-Mail: [email protected]
Linux low latency audio / scheduling latency benchmarks:
http://www.gardena.net/benno/linux/audio

#1 lore raw

Hi, folks,
I performed more latency benchmarks on an old Pentium box:
P133 , mainboard Tyan Tomcat HX, 64MB RAM, harddisk IBM EIDE 6GB,
Soundcard TB Tropez plus, videocard S3 PCI.

To my surprise the results were excellent, 2.1ms ! ( 3x128 bytes audio buffer) (even if the jitter is a bit higher than on a PII400 , but anyway very good !)

I lowered the CPU load to 60% since cpuload€% made the box quite unusable (it's like running on a Pentium with 20-25Mhz :-))

look at the results here:

http://www.gardena.net/benno/linux/audio/2.2.10-p133-3x128/3x128.html

Seems that Benjamin was right: a P166MMX Laptop can deliver the 3-4ms latency. :-)

PS: I noticed that the TB Tropez plus, takes a few msecs to startup, (after the first write() call) therefore just write an empty audio buffer before entering the main loop.

regards,
Benno.

--
Benno Senoner
E-Mail: [email protected]
Linux low latency audio / scheduling latency benchmarks:
http://www.gardena.net/benno/linux/audio

#2 lore raw
In reply to Benno Senoner

I'd like to implement a small audio thru loop with waveshaping effect to test the audio latency of my own box with ingo's patches

(and Benno's last message does really encourages me)

My question is : is it really mandatory to use two threads (one for audio in an one for audio out).

What if I do :

while(1)

{
    read(&buffer); // btw I'll be using alsa not oss
    Process(buffer);
    write(&buffer);
}

Isn't it ok ? I suppose some people have already written this kind of app...

I assume I want to use (potentially) blocking read and write and that the playback and recording have the same clock.

That is, the offset between read and write offset will always be the same.

If I manage to start the playback and recording at the same time, can I assume that, when the write returns, there is also a whole fragment ready in the record buffer (and that read() will never block) ?

Thanks.

Benjamin-

----- Original Message -----
From: Benno Senoner <[email protected]>
To: <[email protected]>; <[email protected]>; <[email protected]>; Paul Barton-Davis <[email protected]>
Cc: Roger Larsson <[email protected]>
Sent: Thursday, September 16, 1999 11:03 PM
Subject: latencytests results on a Pentium133, again EXCELLENT, 2.1ms ! :-)

Quoted 6 lines

Hi, folks,
I performed more latency benchmarks on an old Pentium box:
P133 , mainboard Tyan Tomcat HX, 64MB RAM, harddisk IBM EIDE 6GB,
Soundcard TB Tropez plus, videocard S3 PCI.

To my surprise the results were excellent, 2.1ms ! ( 3x128 bytes audio

buffer)

Quoted 1 line

(even if the jitter is a bit higher than on a PII400 , but anyway very

good !)

Quoted 2 lines

I lowered the CPU load to 60% since cpuload€% made the box quite

unusable

Quoted 7 lines

(it's like running on a Pentium with 20-25Mhz :-))

look at the results here:

http://www.gardena.net/benno/linux/audio/2.2.10-p133-3x128/3x128.html

Seems that Benjamin was right: a P166MMX Laptop can deliver the 3-4ms

latency.

Quoted 21 lines

:-)

PS: I noticed that the TB Tropez plus, takes a few msecs to startup, (after the first write() call) therefore just write an empty audio buffer before entering the main loop.

regards,
Benno.

--
Benno Senoner
E-Mail: [email protected]
Linux low latency audio / scheduling latency benchmarks:
http://www.gardena.net/benno/linux/audio

dupswapdrop -- the music-dsp mailing list and website: subscription info, FAQ, source code archive, list archive, book reviews, dsp links
http://shoko.calarts.edu/musicdsp/