Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

IOStat doesn't work?

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Syster
n00b
n00b
Posts: 60
Joined: Tue Jun 26, 2007 10:17 pm
Location: ŁódŸ

IOStat doesn't work?

  • Quote

Post by Syster » Thu May 19, 2011 12:56 pm

Hi all!

I need to get iostat running on my server. So, i've instaled sysstats. But it seems that iostat doesn't working anyway. I've done some simple test:
Firstly, i've checked stats via iostats:
Server linux # iostat -k
Linux 2.6.37-gentoo-r4 (Server) 05/19/11 _i586_ (1 CPU)

avg-cpu: %user %nice %system %iowait %steal %idle
6.66 0.00 1.65 2.02 0.00 89.67

Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 0.00 0.00 0.00 160 0
sdb 1.95 16.40 17.57 5139802 5505604
Then i started to copying 100MB file from /dev/zero to file on disk.
While system was copying the file, i've checked what iostat returns:
Server linux # iostat -k
Linux 2.6.37-gentoo-r4 (Server) 05/19/11 _i586_ (1 CPU)

avg-cpu: %user %nice %system %iowait %steal %idle
6.66 0.00 1.65 2.02 0.00 89.67

Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 0.00 0.00 0.00 160 0
sdb 1.95 16.40 17.91 5139814 5614576
Almost no difference!

Does iostat some special kernel config?
I've found that kernel should be compiled with CONFIG_BLK_STATS=y but it seems to be deprecated in 2.6 kernel line

PS: /dev/sdb is connected to server via USB to ATA converter
Top
Sysa
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Wed Mar 16, 2005 8:52 am
Location: Europe

  • Quote

Post by Sysa » Thu May 19, 2011 5:27 pm

Before:

Code: Select all

sdb ... 5505604
After:

Code: Select all

sdb ... 5614576 
difference is 100Mb - it means that write operation was finished.

What you want to see?

Try to send more (*Gbs) to see running process...
RedHat -> SuSE -> Debian -> Gentoo
Top
Syster
n00b
n00b
Posts: 60
Joined: Tue Jun 26, 2007 10:17 pm
Location: ŁódŸ

  • Quote

Post by Syster » Thu May 19, 2011 5:36 pm

So why kB_read/s and kB_write/s is always at the same level?
I don't get it.
Top
Sysa
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Wed Mar 16, 2005 8:52 am
Location: Europe

  • Quote

Post by Sysa » Thu May 19, 2011 6:02 pm

Syster wrote:So why kB_read/s and kB_write/s is always at the same level?
I don't get it.
It is because system in the same state.
Look at iostat during long I/O, e.g.

Code: Select all

emerge --sync
in one console and

Code: Select all

watch -n1 iostat
in another and you'll see the difference...
RedHat -> SuSE -> Debian -> Gentoo
Top
py-ro
Veteran
Veteran
User avatar
Posts: 1734
Joined: Tue Sep 24, 2002 11:55 am
Location: Velbert
Contact:
Contact py-ro
Website

  • Quote

Post by py-ro » Thu May 19, 2011 9:46 pm

And if u copy from /dev/zero, you will probably get a sparse file.

py
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri May 20, 2011 3:44 am

py-ro wrote:And if u copy from /dev/zero, you will probably get a sparse file.
Not necessarily. Reading /dev/zero provides an infinite stream of nulls. It is up to the tool reading from /dev/zero whether this results in a sparse file. Simple tools, such as cat or dd, will default to creating non-sparse files.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic