For profiling, use oprofile. There are manual pages on Red Hat's web site and on source forge. Attached are a couple of files that you might find helpful. It's kind of nasty to set up and really sweet to use once it is set up.
I have been doing some profiling of my own lately and have found that LiS spends most of its time in the spin lock routines (optimized). I take this to mean that there is too much lock contention, not that the spin lock routines are themselves slow.
I have a version here in which I have utilized RW locks as much as possible (reasonable?) for locking queue structures and that has offloaded some time in the spin lock routines into the rw lock routines. I am going to investigate this further in the next day or two.
Meanwhile, if you come up with some flash of insight, let me know.
BTW, I once ran a similar test of LiS vs Intel Solaris STREAMS on identical systems and found LiS to be about 15% faster.
-- Dave
At 04:59 PM 4/8/2004, Eugene LiS User wrote:
Hello,
I still have issues with performance.
I use 2 test programs - send and recv that simply
pump data through my streams module.
No wires. No nothing. Pure CPU/Memory performance test.
I compare Linux and HPUX. Uniprocessor configuration.
sar output shows:
TPS %user %sys
HPUX 5000 44% 55%
Linux 5100 19% 80% <-------!!! ?
The TPS value is the same, which is bad(but convinient for comparison).
The %user space performance ratio is 44/16 = 2.5
i.e it is 2.5 faster on Linux than on HPUX.
Which roughly corresponds to how much XEON CPU is faster than PA_RISC.
The %sys space performance ratio is mind boggling
Linux use 80% of CPU in kernel/LiS mode vs. HPUX/Streams 55%.
Given CPU speed ratio Linux/LiS is 4 times slower in %sys mode
than HPUX/Streams.
Can anyone advise on this? Did anyone compare their test programs
on Linux vs. HPUX?
I plan to use kernel profiler to try to find out what's going on
and would appreciate if any anyone can share any experience
on that. I.e. which one to use, where to look?
thanks
--
Eugene
__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
_______________________________________________
Linux-streams mailing list
[EMAIL PROTECTED]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.655 / Virus Database: 420 - Release Date: 4/8/2004
daemonrc
Description: Binary data
README
Description: Binary data
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.655 / Virus Database: 420 - Release Date: 4/8/2004
