I/O is an acronym for Input/Output, which refers to the mechanism or process for the transfer of information between one system or component and another.
1
vote
0answers
36 views
Determine how much a process is using each disk?
How do I tell how much load a particular process is contributing to each of several available volumes/mounts? Seems that dstat only shows aggregate stats across all processes per disk, and iotop only ...
1
vote
1answer
34 views
iotop but for particular disk?
Is there a tool like iotop but for monitoring IO on specific volumes? (Or perhaps I missed a way to filter iotop?) If not is there any way to get at this information via (say)/proc? (dstat etc. ...
1
vote
1answer
332 views
I/O errors on hard disk on Linux boot
Here is a screenshot of booting Arch.
I guess the reason is that I force poweroff my Arch linux many times.
(I already force poweroff my Arch because my firefox flash plugin use too much memory to ...
1
vote
0answers
668 views
How to set up ZFS with ZIL and L2ARC SSD?
I have been considering bcache and flashcache.
However my friend suggested me something called ZFS. In fact it says that formating disk with ZFS can actually do the exact same thing without kernel ...
3
votes
2answers
154 views
Storing thousands of files in one directory
I have a web-site that I'm checking for performance issues and bugs, and i came across a caching code that caches thousands of files into one single directory.
I understand that this is not good and ...
4
votes
2answers
115 views
Why is I/O uninterruptible?
What is the rationale behind making I/O uninterruptible? What would be the negative consequences if a process handling I/O were allowed to handle a signal?
5
votes
2answers
126 views
How to improve IO when there is a lot of random read and write?
My scripts uses tons of read and writes. Most of them are small and random. I want Linux to wait 10 seconds before writing any data to the disk.
How would this be achieved?
I think Linux can already ...
0
votes
1answer
139 views
Does linux have something like supercache?
I installed http://www.superspeed.com/desktop/supercache.php for windows and the result is awesome.
Every program I run is faster.
Basically it uses the memory to cache data. Simple idea. I also use ...
0
votes
1answer
55 views
Strange IOStat xk. Moving a mere 40GB data is too slow. Can anyone explain?
iostat -xk 5
avg-cpu: %user %nice %system %iowait %steal %idle
0.99 0.00 1.10 11.01 0.00 86.89
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s ...
0
votes
2answers
79 views
is writing to slow storage in nohup mode blocking the process?
If I have a process writing to nohup and the storage where it writes to is slow, does it block the process which is running in nohup? For example:
process A is running in nohup, it needs to write 10 ...
2
votes
1answer
88 views
IOStat report large ocassional writes but find reports no big file
root@host [/home4]# find . -type f -size +2000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
...
1
vote
2answers
127 views
How to know recently updated files
If I run iostat -x 1 I saw ocassionally large 5MB to 10MB writes.
What files are being written?
I want to check the recently created files with size over 5MB for example.
How would I do so?
1
vote
1answer
100 views
iostat report huge writes to drives that's not even mounted
root@host [~]# fsck /home2
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/dev/sdb1: clean, 6018617/91578368 files, 54524459/366284000 blocks
root@host [~]# fsck /home4
fsck from ...
1
vote
1answer
592 views
Which drive had a “journal commit I/O error”?
I received a message:
kernel:[123456.789012] journal commit I/O error
Which disk drive had the journal error?
4
votes
2answers
95 views
Determine which process is taking most of disk bandwidth?
When the HDD indicator is blinking (for a long period), how could I know which process is taking most disk bandwidth?
1
vote
1answer
82 views
Does symlinking from Drive A to Drive B affect I/O on Drive A?
I was wondering if IO through a symbolic link affects IO on the host drive even if it points to a seperate drive?
My setup is,
/dev/sdb2 1.8T 443G 1.3T 26% /home1
/dev/sda3 1.8T 1.7T ...
10
votes
1answer
681 views
Meaning of colours in htop
Given the option:
[ ] Detailed CPU time (System/IO-Wait/Hard-IRQ/Soft-IRQ/Steal/Guest)
In htop (Version 1.0.1) what are the meanings of the colours?
In the following image, I'm seeing rather a lot ...
2
votes
1answer
738 views
I/O error but no bad block is reported in syslog
I got errors like this in my syslog, but there's no bad block or sector defined in kernel report, I can't just replace the HDD right now and I prefer to reallocate the bad blocks for now, so I need ...
6
votes
2answers
635 views
Can I watch the progress of a `sync` operation?
I've copied a large file to a USB disk mounted on a Linux system with async. This returns to a command prompt relatively quickly, but when I type sync, of course, it all has to go to disk, and that ...
4
votes
2answers
1k views
How to Throttle per process I/O to a max limit?
I'm looking for a way to limit a processes disk io to a set speed limit. Ideally the program would work similar to this:
$ limitio --pid 32423 --write-limit 1M
Limiting process 32423 to 1 megabyte ...
0
votes
1answer
95 views
What is the difference between > and >> (especially as it relates to use with the cat program)?
Suppose that I have a file called temp.txt. Using the cat program, I would like to add the contents of this file to the end of myfile.txt -- creating myfile.txt if it does not exist and appending to ...
5
votes
1answer
415 views
What keeps one side of an rsync so busy?
I've got a debian machine in my lan serving as a backup server for the others. It has four HDDs combined into a software RAID 5 md device, on that an lvm, and on that a btrfs. Backups are made using ...
3
votes
2answers
200 views
Running jobs in parallel on Ubuntu - I/O contention differences between Perl and Java
Apologies if this is off topic - it concerns the relative efficiencies of running I/O-heavy Perl/Java scripts in parallel on a Ubuntu system.
I have written two simple versions of a file copy script ...
5
votes
3answers
254 views
File size of 60.0 PB is wrong. Can deleting it cause data loss?
While backing up some data (a 200 GB home directory) with rsync, I got an I/0 error for a particular file, after which rsync continued on "normally" with its backup. The problem source file showed as ...
2
votes
3answers
216 views
How can I read lines at a fixed speed?
I need to read a large log file and send it over a local network using (netbsd) netcat between two VMs on the same host workstation.
I know that netcat has an interval, but as far as I can tell, the ...
1
vote
0answers
73 views
Changing I/O settings from serial port to LCD&keyboard
I have a prebuilt image of Linux (uImage-da850-omapl138-evm.bin) from Arago Project.
So uImage and root filesystem are situated on SD card of my device (OMAP-L138 Experimenter Kit). After Linux is ...
11
votes
2answers
507 views
Portability of “> /dev/stdout”
Occasionally I need to specify a "path-equivalent" of one of the standard IO streams (stdin, stdout, stderr). Since 99% of the time I work with Linux, I just prepend /dev/ to get /dev/stdin, etc., ...
4
votes
4answers
417 views
script for logging all the stats for a particular process
I want to monitor CPU usage, disk read/write usage for a particular process, say ./myprocess.
To monitor CPU top command seems to be a nice option and for read and write iotop seems to be a handy ...
3
votes
2answers
443 views
I/O statistics per user
I have access to an academic supercomputer where there is an NFS filesystem where our lab keeps our data.
When I run iostats -nh I believe I am getting statistics for all users accessing all storage ...
2
votes
1answer
157 views
How do I record disk performance on slow hardware and then replay it to faster hardware and benchmark it?
I am currently performing various development tasks that are slow on my current system because of IO performance.
Is there a way to record disk operations while performing IO consuming tasks, ...
18
votes
3answers
523 views
How can I limit the output speed of stdout?
I'm running CentOS 5.7 and I have a backup utility that has the option of dumping its backup file to stdout. The backup file is rather large (multiple gigabytes). The target is an SSHFS filesystem. To ...
4
votes
2answers
2k views
Write inside a socket open by another process in Linux
Is it possible on Linux for a process to write inside a socket open by another one?
Let's say I open a connection to google.com using netcat:
myuser@linux:~$ nc google.com 80
Now I can lookup for ...
2
votes
2answers
415 views
vmstat IO stats: why the high bo during a download?
On my RHEL 4 machine, I was downloading a huge file (2.5GB)..I was checking the output of vmstat and was especially curious about seeing the disk IO using bi and bo. I know iostat is a better tool ...
6
votes
2answers
262 views
Mysterious write IO
I am just reviewing the disk IO of a XEN VM server. I stumbled across a DomU that has constant write traffic.
To narrow that traffic further down I logged in to the DomU (CentOS 5, 64 Bit) and ...
5
votes
1answer
574 views
SysBench highlighting abysmal disk write performance on white box vs Tier1 server
Have been testing white box system with SuperMicro X8DTL motherboard with various SATA hard disks such as 7,200RPM Seagate Constellation ES and 10,000 RPM Western Digital VelociRaptor.
Have tested ...
3
votes
2answers
983 views
100.0%sy with poor disk performance
I have RHEL 5.4 kernel 2.6.18-164.el5 and I am experiencing very bad disk performance that happens randomly during working with Oracle.
Nothing appears in the logs.
When it happens, I see one CPU ...
3
votes
1answer
98 views
Copying a file that is written at the same time
This related question can't solve my exact problem, so I'm writing a similar question.
My scenario is the following: a program (run by wine) writes to a file sized about 10-500 KB. About 1 KB ...
2
votes
1answer
101 views
In terminal, I can search to end of log faster than the data gets there
[The Question]
Is there some way to have the pipe/tee/write combo write lines immediately? ... if it can be done, what is the trade-off?
[The Backdrop]
My script sends a keypress to the terminal, ...
3
votes
2answers
81 views
dealing with un-executable commands inside a shell-script
I am given an assignment like this: Write a Bash script that takes a *.tex file as command-line argument and checks if the file executes correctly without any errors. If it executes without any error ...
2
votes
1answer
336 views
Why do backgrounded processes sometimes stop spontaneously?
Sometimes, some time after I've backgrounded a process with bg in bash, when I press Enter in the same shell to redisplay the prompt (just to check that I'm still in bash when some output from the ...
1
vote
0answers
347 views
GNU/Linux, IO performance problems
I have some problems with my system performance. As I was adviced here, I used sar:
$sar -u 5
and found out that the problems are caused by a low HDD performance, as I supposed (high %iowait).
...
1
vote
2answers
535 views
Make iotop show only the most disk-intensive item
My laptop (no VM, just plain Ubuntu with encrypted home) freezes for 3 minutes a few times per day. During these 3 minutes, the disk LED indicates intense disk activity, and I can't even move the ...
1
vote
2answers
94 views
Which root paths should reside on fast media?
Which paths under / should be mounted on fast media, and which can be mounted on slower media without significantly affecting system performance?
My guess:
Fast
Partition: swap (2G)
Partition: ...
5
votes
3answers
214 views
Utility to buffer an unbounded amount of data in a pipeline?
Is there a utility that I can stick in a pipeline to decouple read and write speeds?
$ producer | buf | consumer
Basically, I want a utility buf that reads its input as fast as possible, storing it ...
4
votes
1answer
152 views
Repeatably generate a read error for testing?
I'm trying to test the error handling in some software, in particular what happens when an error occurs reading from a file or pipe. Is there a simple way to send a certain amount of data to stdout ...
1
vote
1answer
293 views
BluRay Burner High I/O Wait State with UDF; Optimization Possible?
I've recently scaled back my home network, with one of the bigger changes being a switch-over to using a BD-RE drive for backup. With years of pictures and home video consuming about 25GB, and ...
3
votes
1answer
246 views
Removing redirection operator does not change output. Why?
I saw this usage of redirection somewhere, and thought it was a typo:
grep root < /etc/passwd
But after I run it, I saw that it gives the same output with
grep root /etc/passwd:
$ grep root ...
1
vote
1answer
404 views
iostat usage and output
When I run the iostat command like this:
iostat -d
I get a result something like this:
Linux 2.6.18-238.el5 (mon01) 09/03/2011
Device: tps Blk_read/s Blk_wrtn/s Blk_read ...
1
vote
1answer
1k views
How can I specify that curl (via command line) overwrites a file if it already exists?
I'm using curl in this syntax:
curl -o myfile.jpg http://mysite.com/myfile.jpg
If I run this command twice, I get two files:
myfile.jpg
myfile-1.jpg
How can I tell CURL that I want it to ...
6
votes
4answers
345 views
copy consumed output to stdout when stdout is redirected to a file
Given a command the output of which is being processed by, for example, grep I also want the actual output to be included in the log file for debugging purposes.
For example if I have the following
...