Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-16-2005, 08:38 PM   #1
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31

Hi to all,

I'm trying myself at fedora core 4. I wanted to ask where can I get an iperf rpm that works on fedora core 4. I found the file iperf-2.0.2-1.2.fc4.rf.x86_64.rpm but i get errors because of the 64-bit computing requirements. My architecture is i386 (Pentium 4). Where can i get a .rpm file suitable for my machine?

Also, is the 'top' command a good and reliable way to measure CPU usage during traffic forwarding. Is there a way to make it give CPU usage info at regular intervals? Are there other easier ways than scripts?

Any input will be very much appreciated...

Warm regards,
Old 11-16-2005, 09:50 PM   #2
Registered: Mar 2005
Posts: 60

Rep: Reputation: 15
have you tried

some good commands (all from the top man page under "See Also"):

free: Shows memory usage
ps: Lists processes
uptime: Shows how long linux has been running.
slabtop: Like top, but displays kernel slab cache info.
vmstat: Shows memory and CPU usage (not in real time like top)
w: Shows who is logged on.

As for checking these things regularily, nothing is easier than shell scripts.

For instance, if I wanted a script that checked every 5 seconds to see if the CPU was above 50%, and if so reported it to a file, it would look like:
#! /bin/bash

while true; do
VMSTATS=`vmstat | grep -v procs | grep -v buff`; INT=0

for num in $VMSTATS; do
INT=`expr $INT + 1`;
if [ $INT = 14 ]; then CPUUSAGE=$NUM; fi

if [ $CPUUSAGE -ge 50 ]; then 
date >> file.txt; 
echo "CPU usage is at $CPUUSAGE percent." >> file.txt; 
echo >> file.txt;

sleep 5

Old 11-17-2005, 04:03 AM   #3
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Many thx for the reply...

By the way, wat command can we use to know the version of the kernel that is currently running on a machine?

Thx again..

Warm regards,
Old 11-17-2005, 08:30 PM   #4
Registered: Mar 2005
Posts: 60

Rep: Reputation: 15
on mine it's simply 'kernelversion'. or you can check by doing 'ls /lib/modules' and see what the number is there.
Old 09-03-2006, 01:12 PM   #5
Registered: Jul 2006
Posts: 130

Rep: Reputation: 15
you can type "uname -r" or "uname -a" or "uname -rp"....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
iperf vishamr2000 Linux - Networking 0 11-25-2005 07:15 AM
Installing Iperf >>cannot find -lstdc++!!!! RKris Linux - Software 1 12-16-2002 12:26 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration