LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2010, 01:04 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
Performance monitoring help needed.


How would i check for following?
open ports in my linux machine.
Hard disk read speed.
Hard disk write speed.
 
Old 08-05-2010, 01:41 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by pinga123 View Post
How would i check for following?
open ports in my linux machine.
Clarify please: open as in
a) something listening
b) not actively blocked by iptables

Quote:
Originally Posted by pinga123 View Post
Hard disk read speed.
Clarify please:
a) current write speed on a disk
b) a measurement of the drives max performance

Quote:
Originally Posted by pinga123 View Post
Hard disk write speed.
Clarify please: (SEE ABOVE)



Cheers,
Tink
 
Old 08-05-2010, 01:47 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 37
Wink

Quote:
Originally Posted by Tinkster View Post
Clarify please: open as in
a) something listening
b) not actively blocked by iptables


Clarify please:
a) current write speed on a disk
b) a measurement of the drives max performance


Clarify please: (SEE ABOVE)



Cheers,
Tink
I didnt thought of the options you have provided.
It will be better if i can get all answers you specified here.
 
Old 08-05-2010, 04:10 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
open ports in my linux machine.
nmap localhost
netstat -antlp

Quote:
Hard disk read speed.
Hard disk write speed.
hdparm -tT /dev/sda <= your HDD
hdparm -I /dev/sda | grep speed

read command's man page for more information
 
Old 08-06-2010, 12:13 AM   #5
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by sem007 View Post
nmap localhost
netstat -antlp



hdparm -tT /dev/sda <= your HDD
hdparm -I /dev/sda | grep speed

read command's man page for more information
hdparm has a more serious drawback: it can crash a computer and make data on its disk inaccessible if certain parameters are misused. Out of approximately sixty-seven parameters, several are dangerous and could result in "massive filesystem corruption" when used indiscriminately.
wiki source http://en.wikipedia.org/wiki/Hdparm
 
Old 08-06-2010, 03:56 AM   #6
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by pinga123 View Post
hdparm has a more serious drawback: it can crash a computer and make data on its disk inaccessible if certain parameters are misused. Out of approximately sixty-seven parameters, several are dangerous and could result in "massive filesystem corruption" when used indiscriminately.
wiki source http://en.wikipedia.org/wiki/Hdparm

Yes you are right, but when you use any DANGEROUS parameters.In man page they define which parameter is DANGEROUS or VERY DANGEROUS. It crash computer only when you use/misuse any dangerous parameters.It depends on you what parameter you want to use.
 
Old 08-06-2010, 05:54 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
hdparm's results are all fog & mirrors anyway; if you want to
get a realistic result for multi-user, multi-tasking OS you'll
have to resort to bonnie or bonnie++.


Cheers,
Tink
 
Old 08-09-2010, 02:22 AM   #8
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by Tinkster View Post
hdparm's results are all fog & mirrors anyway; if you want to
get a realistic result for multi-user, multi-tasking OS you'll
have to resort to bonnie or bonnie++.


Cheers,
Tink
Being a novice user to linux i m little unaware of most of the solution given in reply to my original post.
However i m surprise as there is not a simple command to check the read and write speed of the harddisk.
One of my mate is suggesting to create a file using dd command and check how much time it takes to create a 1 gb file .
I think this has a little sense however i would also like to take your reviews about the same.

This is how i m going to test the write speed.

'For write
This will create a 45 gb file in X seconds.
by calculating Diskspace in kb / Second i will get the actual write speed in kb/s .
Code:
dd if=/dev/zero of=/share/test.out bs=47185920 count=1024
 
Old 08-17-2010, 12:18 AM   #9
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 37
Disk read and write speed.

Being a novice user to linux i m little unaware of how would i check disk read write speed.

One of my mate is suggesting to create a file using dd command and check how much time it takes to create a 30 gb file .
I think this has a little sense however i would also like to take your reviews about the same.

This is how i m going to test the write speed.

'For write
This will create a 30 gb file in X seconds.
by calculating Diskspace in kb / Second i will get the actual write speed in kb/s .
Code:

Quote:
dd if=/dev/zero of=/share/test.out bs=4096 count=7864320
 
Old 08-17-2010, 01:23 AM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
As I said above: use bonnie++

Using dd & a linear write or read process is as artificial
as using hdparm, and will give you fairly little indication
of what you'll see in a multi-user, multi-tasking environment
as far as usage patterns go.



Cheers,
Tink

P.S.: I took the liberty to tack your new post onto the old
thread with almost identical wording in the last post.
 
  


Reply


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
Performance Monitoring Tool gidrow Linux - Software 3 03-05-2010 10:08 AM
Performance monitoring Ammad Linux - Server 2 11-16-2007 12:21 PM
performance monitoring / optimization vikasbucha Linux - General 2 01-25-2007 05:38 PM
Performance Monitoring Risc91 AIX 11 10-21-2005 11:51 AM
Monitoring System Performance lapthorn Linux - General 3 04-22-2004 04:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:02 PM.

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