Quote:
Originally Posted by nagavinodh
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.