LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-12-2022, 01:41 AM   #1
z_haseeb
Member
 
Registered: Jun 2008
Posts: 138

Rep: Reputation: 1
How to check maximum disk read & write operations of SSD in m & gb


How to check maximum disk read & write operations of SSD in mb & gb
We have a Linux machine and see RAM/CPU SWAP is not using more than 50%. However the disk %iowait is 8 to 11. The disk claim its 500 plus read & write operations(picture is attached). The disk is SSD. Below snapshot of iowait is for a reference

04:59:47 PM CPU %user %nice %system %iowait %steal %idle
04:59:48 PM all 20.20 0.00 4.95 8.81 0.00 66.03
04:59:49 PM all 19.05 0.00 4.46 7.88 0.00 68.61
04:59:50 PM all 20.31 0.00 5.20 9.71 0.00 64.77
04:59:51 PM all 22.07 0.00 4.66 9.05 0.00 64.22
04:59:52 PM all 20.34 0.00 4.25 8.42 0.00 66.99
04:59:53 PM all 20.62 0.00 4.74 10.10 0.00 64.54
04:59:54 PM all 21.77 0.00 4.86 10.81 0.00 62.56
04:59:55 PM all 19.06 0.00 4.23 11.27 0.00 65.44
04:59:56 PM all 20.60 0.00 4.37 9.69 0.00 65.35
04:59:57 PM all 21.66 0.00 5.18 10.49 0.00 62.67
04:59:58 PM all 18.99 0.00 3.98 7.54 0.00 69.50
04:59:59 PM all 23.47 0.00 6.04 9.27 0.00 61.22
05:00:00 PM all 25.91 0.00 6.25 7.63 0.00 60.21
05:00:01 PM all 25.33 0.00 5.63 7.34 0.00 61.70
05:00:02 PM all 24.56 0.00 6.84 9.71 0.00 58.89
Attached Thumbnails
Click image for larger version

Name:	WhatsApp Image 2022-10-12 at 10.37.13 AM.jpeg
Views:	7
Size:	71.9 KB
ID:	39704  

Last edited by z_haseeb; 10-12-2022 at 01:46 AM.
 
Old 10-12-2022, 02:00 AM   #2
z_haseeb
Member
 
Registered: Jun 2008
Posts: 138

Original Poster
Rep: Reputation: 1
Iowait & iostat output
Attached Thumbnails
Click image for larger version

Name:	IOWAIT.png
Views:	17
Size:	58.5 KB
ID:	39705  
 
Old 10-12-2022, 09:05 AM   #3
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,461

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
There is a tool called nmon which can give you better information about which disk is being used and how much is read/written. Install it, run nmon and hit "d".

Also, htop is not a good tool for IO. Try iotop instead - showing the processes where the process using the most IO is "the winner" - not the one using the most CPU. It also shows how much it reads and writes.
 
1 members found this post helpful.
Old 10-13-2022, 02:04 AM   #4
z_haseeb
Member
 
Registered: Jun 2008
Posts: 138

Original Poster
Rep: Reputation: 1
Thanks for your response. I don't need to know which process is utilizing the disk thru IOTOP or NMON. I also dont want to know what is the current disk read & write while the disk is busy in reading and writing.
MY QUERY
I want to know a tool which can show the maximum read & write speed of SSD
 
Old 10-13-2022, 02:38 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,245
Blog Entries: 1

Rep: Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173Reputation: 2173
Code:
# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   16136 MB in  1.99 seconds = 8099.80 MB/sec
 Timing buffered disk reads: 1500 MB in  3.00 seconds = 499.38 MB/sec
 
Old 10-13-2022, 02:55 AM   #6
z_haseeb
Member
 
Registered: Jun 2008
Posts: 138

Original Poster
Rep: Reputation: 1
This command seems good but I can see it only show read status. Does this command shows any statistics for write ?

PHP Code:
Timing cached reads
Timing buffered disk reads 
 
Old 10-13-2022, 04:23 AM   #7
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,461

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
If you want to test it, you can use a tool like dd.

https://www.cyberciti.biz/faq/howto-...th-dd-command/
 
Old 10-13-2022, 06:24 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
Quote:
Originally Posted by z_haseeb View Post
TI want to know a tool which can show the maximum read & write speed of SSD
Any I/O benchmark suitable for SSD should suffice.

I suspect yet another example of an xyproblem - what problem are you trying to solve ?. What workload is being impacted ?.

Last edited by syg00; 10-13-2022 at 06:26 AM. Reason: added link
 
Old 10-13-2022, 07:05 AM   #9
z_haseeb
Member
 
Registered: Jun 2008
Posts: 138

Original Poster
Rep: Reputation: 1
Actually I can see read/write performance is few MB/sec (check thru IOTOP) and disk is busy 90% (check thru IOSTAT). But when I run the dd command the read/write is excellent like more than 1 GB read/write. So thats why I asked in above post "how to check maximum read/write speed of SSD" to know the benchmark OR dd command is enough

Few ofthe above members also recommend dd command which seems fine for me
 
  


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
How to enable a Hard Disk to read/write to a USB device but disable the USB device to read/write to the hard disk without user permission? ce309 Linux - General 33 05-22-2019 05:30 PM
Maximum number of move/copy operations? jokeshopbeard Linux - Newbie 3 08-26-2009 11:48 AM
Maximum number of move/copy operations RH5? jokeshopbeard Linux - Newbie 1 08-25-2009 05:28 PM
Slow read/write operations on 3592 drive Joejr4u Linux - Hardware 2 03-17-2008 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:35 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
Open Source Consulting | Domain Registration