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.

learn more… | top users | synonyms

0
votes
0answers
34 views

Slow USB 3 write speed

Writing to my USB 3 thumb drive (SanDisk Extreme SDCZ80-064G-FFP) is very slow on Linux: 1 GB takes longer than 200s. Using Windows (dual-boot on the same computer), the same 1 GB file can be copied ...
3
votes
0answers
23 views

Samba performance tuning

Hi I'm using Samba to share a folder from linux to a Windows client(Windows Server 2012 R2). The disk backing the linux share is pretty fast (NAS of 500+ MB/s). However, when I benchmark the IO ...
0
votes
0answers
11 views

iozone read test slower than fio

I'm currently using both iozone and fio to test my disk performance. However, iozone show much much poor speed than what is shown from fio. (about 1/3) Now the question for me is which number should ...
1
vote
1answer
42 views

Persistent process substitutions? [duplicate]

Is there a way to take a process substitution like <(grep foo some/file), and save it to a "file-like entity" on disk (reminiscent of a fifo), so that, every time this thing was opened for reading ...
1
vote
1answer
19 views

How does iotop calculate the relative I/O activity?

I am running some heavy I/O processes on my workstation and recently installed iotop to monitor them. Here's a recent screenshot: I'm a bit confused about the readings in the IO> column. It ...
0
votes
1answer
26 views

Sometimes syncing gets stuck with dd

Sometimes when I use dd then sync or use dd with conv=fsync, the syncing process gets stuck, but sometimes not, with exactly the same input and output targets and configuration. dd ...
0
votes
0answers
52 views

Arch Linux: blk_update_request: I/O error, dev sr0, sector 1452024: unrelated to user input

I just left my Arch Linux installation running in a virtual machine. When I came back to it, I found the following error: [14554.169929] blk_update_request: I/O error, dev sr0, sector 1452024 ...
10
votes
5answers
4k views

Special File that causes I/O error

I want to automatically test if a piece of software reacts as expected if an essential SQLite DB file fails to be read (causing an I/O error). Exactly that happened some days ago at a client. We ...
1
vote
1answer
40 views

Monitor temperature/IO of NVMe drive

Is there a way to monitor temperature or reads/writes of and NVMe drive (in this case Intel 750). hdparm, udisksctl, smartctl, and hddtemp all seem to lack this capability, google searches have been ...
1
vote
0answers
25 views

Determine affected file given logical block number [duplicate]

Given the logical block number from these log lines in /var/log/messages, is there a way to determine what file was affected? ...Buffer I/O error on device sdd1, logical block 203953715 ...lost page ...
0
votes
1answer
2k views

CentOS 7 Live - Read-only file system error

I have loaded a CentOS 7 Gnome Live USB. I wanted to do some operations on it without touching the installed system on the computer, because I only want to try some things. I installed openssh-server ...
2
votes
1answer
1k views

-bash: /usr/sbin/useradd: Input/output error — What does this mean?

Today, on my Centos server I tried to add a user but got the following error: -bash: /usr/sbin/useradd: Input/output error How do I fix it?
0
votes
2answers
88 views

Input/output error, cannot install anything

I have done something strange to my debian server and now I cannot install anything. It says, that locale is broken. I tried to fix it by reconfiguring dpkg, cleaning apt-get and and many other ...
26
votes
5answers
4k 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., ...
1
vote
1answer
24 views

How to clear data from all files present in a directory?

I have a folder which has some text files and other folders in it which in turn have more text files in them. I need a command which will recursively loop over the folder and clear all the contents ...
6
votes
2answers
15k views

When a process will go to 'D' state?

I'm using "Linux hostname 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux" All the client machines will use Thin-client ,I will use my laptop for working and I will ...
6
votes
2answers
2k views

Massive, unpredictable I/O performance drop in Linux

I'm using Debian testing without any problems for ~6 years (I'm just regularly updating it), but recently it started to show a random behaviour that can be summarized as "Low I/O performance which ...
0
votes
0answers
42 views

Why does hdparm and dd show two completely different results?

I have an external hard drive (/dev/sdc1) mounted at /mount1 When running hdparm -tT /dev/sdc1 I get: /dev/sdc1: Timing cached reads: 2246 MB in 2.00 seconds = 1123.75 MB/sec Timing buffered ...
2
votes
1answer
66 views

Create a file of fixed size with specific contents

I want to create a file of fixed size (1G, 10G, 100G etc) with a single random word of length within the specified limit on every line. I basically want this to run a benchmark which will sort the ...
3
votes
2answers
61 views

Defer *all* disk writes, keep them in memory

How to temporarily stop synchronizing of dirty data with disk, instead just keeping it in memory. Clarification: I want to sync it later.
2
votes
2answers
6k 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 ...
1
vote
2answers
86 views

How to redirect STDIN of background process?

In my Ubuntu, i run java application in background. I use bash script to run it and now it looks like: nohup java -jar app.jar & exit 0 The problem that i want to be able to write an input ...
0
votes
0answers
20 views

Diagnose input/output errors on a Truecrypt container

I have been trying to get a local repository located on a usb drive working on an air-gapped machine. The repository was created with apt-mirror on the same kind of system (ubuntu i386). Currently I ...
0
votes
1answer
30 views

How do I give an input to an infinitely running program? [closed]

I have a python program that runs infinitely, takes an input and throws an output. I want to write a bash program that gives an input while the python script is running. So, how do I give an input to ...
0
votes
2answers
67 views

What does the symbol '-' mean in Linux? [duplicate]

I see this symbol all the time and my book has yet to clarify what it means. None of the man pages or web searches clarify this either. At first I believed it to be a I/O symbol, but that never works ...
1
vote
1answer
351 views

hdparm: SECURITY_SET_PASS: Input/output error

I'm trying to use hdparm to secure erase an SSD as suggested here. Following the directions in that guide has worked okay so far, but I can't seem to resolve this error: ~ $ sudo hdparm ...
5
votes
2answers
832 views

Why do systems become slow when doing massive writes to disk?

I want to know why systems become slow when writing mass data to disk. I think that for system to become slow, there should be some issue with CPU. But write is only I/O bound. Do hardware ...
6
votes
4answers
2k views

Intercept input and output from specific executable

I have a certain Linux executable that is called from a bigger application to perform some calculations. I want to modify the way the calculations are performed, for that I first need to understand ...
0
votes
2answers
73 views

command to list logical volume I/O statistics on AIX

I am looking for a command which displays the I/O statistics of logical volumes (like reads/sec , writes/sec, io utilization %, read kb per second, written kb per second) . I tried iostat, but its ...
4
votes
1answer
33 views

understanding lsof during long operation on big file

Background I'm running Musicbrainz Picard to update a ~11M ogg file on a 500GB NTFS disk (Transcend StoreJet) connected via USB and mounted using autofs. The connection is through docking station. ...
0
votes
2answers
67 views

The interrupt timeline for a single process doing output

I'm studying the book 'Operating System Concepts' 9th edition. In the first chapter, part 1.2.1 computer system operation, I can't understand the figure 1.3: Can any one make a quick interpretation ...
1
vote
1answer
50 views

Why is uninterruptible sleep indicated by 'D'?

From "man ps": R = Running or Runnable S = interruptable Sleep T = sTopped Z = Zombie D = uninterruptible sleep (usually IO) Where does this D come from?
0
votes
0answers
27 views

How do I hook an application and find out what files it writes while running? [duplicate]

I'm not sure how to exactly word this question, because my searching hasn't yielded anything that describes my situation what I'm looking for. Say my friend writes an application and sends it to me ...
1
vote
1answer
72 views

Desktop completely freezing on I/O operations

In my old system, I was already having desktop freezes on some heavy I/O operations like apt-get dist-upgrade and copying 4 GB video files. But now, it has become a lot worse: any apt-get install is ...
2
votes
1answer
184 views

How to calculate blkio shares in cgroups?

Currently I'm trying to setup a test scenario with the use of Debian Wheezy with its default kernel 3.2.60-1+deb7u3 and the cgroups blkio controller. The calculation of blkio.weight is not working for ...
0
votes
1answer
25 views

Crash with input/out error and swap unmounting [duplicate]

I am looking for hints on this problem. I've searched around, but can't find something exactly similar. I am running Debian 8 stable, updated, very minimal install (i3wm, small number of apps ...
7
votes
3answers
2k views

Construct a command by putting a string into a tty

I managed to do this echo -n "command" > /dev/tty1 The letters appear, and the cursor moves, but they are "ghosts" – if you hit Enter, nothing happens (they are not in stdin). Edit: In the ...
4
votes
2answers
6k views

Optimizing logical sector size for physical sector size 4096 HDD

With many new hard drive disks the physical sector size is 4096. Would it be possible to make the system use a logical sector size of the same size, rather than the default logical sector size of 512? ...
3
votes
2answers
2k views

What's the difference between ioremap and file operation mmap?

I'm currently working on a PCI device driver for Ubuntu. I have some example code about PCI driver, but I have difficult on understanding the ioremap and file_operation.mmap. The description of file ...
1
vote
3answers
341 views

How do I run a command in a different tty?

Suppose there are two terminals, pts/0 and pts/1. In pts/0, I have fired a command: ls>/dev/pts/1 Then, we only get the output of the ls command in pts/1, but I want to run a command as well as ...
10
votes
3answers
1k views

tar to pipe but keep -v verbose output separate from STDERR

A normal tar command tar cvf foo.tar ./foo >foo.out 2>foo.err has three output IO streams archive data to foo.tar list of filenames to STDOUT (redirected into foo.out) error messages to ...
1
vote
1answer
62 views

copy and symlink mysql to another disk partition

I'm using ubuntu 12.04 and have two disk partition named: /dev/sda and /dev/sdb. my home partition and other programs are in /dev/sda. therefor any work like database benchmark on my mysql databases ...
0
votes
1answer
57 views

Which components of Linux IO subsystem are device-independent and device-dependent?

From Tanenbaum's Modern OS, every operating system has an I/O subsystem for managing its I/O devices. Some of the I/O software is device independent, that is, applies to many or ...
1
vote
0answers
68 views

Linux: Why do init and systemd use so much I/O?

This is probably unanswerable. But maybe someone else will have this problem and find this question, append to it, or proffer an answer. I discovered the pidstat command with its -d option, today. ...
0
votes
2answers
40 views

Input redirection using command and options

I am trying to write a script that takes in 2 parameters - program name and optional flags. I am trying to execute the program command on an input_file and store the output in the output_file. ...
0
votes
0answers
17 views

how qemu interacts with guest os io requests?

the Linux io stack (eg the path of an io request) is something like this: now when such a guest OS is a Linux distro in qemu, the path is the same except in this case there is no disk and scheme is ...
0
votes
0answers
38 views

Dive into qemu source code to trace io requests

I searched a lot about qemu and read its documentation but could not find any explaining its I/O stack. Specifically, I want to know about how an I/O request is created and what path it travels to ...
0
votes
0answers
43 views

dd process real vs. sys time

I have two quad core workstations. One is based on Intel Atom x86_64 architecture (WS1). Another one is based on armv7l architecture (WS2). Both are running 3.10 kernel version. Identical busybox dd ...
0
votes
0answers
29 views

Why my disk is at full speed even though very little is written or read?

Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util sda 429.60 9.00 170.20 2.00 2479.20 71.20 29.62 10.80 67.28 ...
1
vote
0answers
44 views

Storage device trouble: IO errors but no bad sectors?

I have a lightly used spinning metal drive (internal) with some VMs on it. I'm running into IO errors while running a VM and upon closer examination I have found a virtual disk file that is reporting ...