LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-12-2009, 01:14 AM   #1
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Rep: Reputation: 15
input and output


Hi,
In Linux,how to check the iostat on linux.I have some questions.please tell anyone.

can we find how many sectors in a file?
How to find many blocks in a file?
How to find the block size in a file?
can we reduce the I/O in linux?if it's what way?
How to the check DISK controller?Is there anyway to increase the performance?
Which DISK Type is better for perfromance whether HDA or others
 
Old 09-12-2009, 02:01 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by nagavinodh View Post
Hi,
In Linux,how to check the iostat on linux.I have some questions.please tell anyone.

can we find how many sectors in a file?
How to find many blocks in a file?
How to find the block size in a file?
can we reduce the I/O in linux?if it's what way?
How to the check DISK controller?Is there anyway to increase the performance?
Which DISK Type is better for perfromance whether HDA or others
To determine the approximate number of sectors required for a file, divide the file's length by the HDD sector size. It's always going to be approximate because storage size rounds up to the next full sector.

Blocks, essentially the same answer -- it gets worked out by the number of sectors in a block, and (again) how many sectors required by the file. The term "block" has pretty much gone out of fashion, because it doesn't have a strict meaning.

Quote:
How to find the block size in a file?
This is either a repeat of the question above it, or it has no meaning.

Quote:
can we reduce the I/O in linux?if it's what way?
Well, we can turn off the computer -- that does wonders for reducing I/O. We can also buy more RAM, which has the effect of caching prior reads.

Quote:
How to the check DISK controller?Is there anyway to increase the performance?
Okay ... is this homework? Only a computer science instructor would ask such absurd questions.

Quote:
Which DISK Type is better for perfromance whether HDA or others
HDA isn't a disk type, it's a common disk device assignment.

Hmm ... this is homework! And your instructor is either not very bright or he is trying to trick you into asking silly questions in a public forum.
 
Old 09-12-2009, 02:17 AM   #3
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lutusp View Post
To determine the approximate number of sectors required for a file, divide the file's length by the HDD sector size. It's always going to be approximate because storage size rounds up to the next full sector.

Blocks, essentially the same answer -- it gets worked out by the number of sectors in a block, and (again) how many sectors required by the file. The term "block" has pretty much gone out of fashion, because it doesn't have a strict meaning.



This is either a repeat of the question above it, or it has no meaning.



Well, we can turn off the computer -- that does wonders for reducing I/O. We can also buy more RAM, which has the effect of caching prior reads.



Okay ... is this homework? Only a computer science instructor would ask such absurd questions.



HDA isn't a disk type, it's a common disk device assignment.

Hmm ... this is homework! And your instructor is either not very bright or he is trying to trick you into asking silly questions in a public forum.
Thanks for reply.please answer it polietly ...............

Last edited by nagavinodh; 09-12-2009 at 03:20 AM.
 
  


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
DD Input/output error Aegreen Linux - Newbie 4 04-16-2009 07:26 AM
[C++] Different output from same input ( without srand() ) sylvaticus Programming 2 02-09-2008 12:30 PM
input /output error kapoorrajeev1906 Linux - Server 1 06-23-2007 09:34 PM
Sound input/output using C ashlesha Programming 5 04-02-2007 03:30 PM
cp input/output error. bruse Linux - Software 0 05-21-2006 12:38 AM

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

All times are GMT -5. The time now is 07:25 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