Gentoo Archives: gentoo-user

From: Johannes Altmanninger <aclopte@×××××.com>
To: meino.cramer@×××.de, Gentoo <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] How to find out to what file(...) writes goes on a idle system...
Date: Sat, 06 Dec 2014 11:05:23
Message-Id: 87k325qbyb.fsf@inbox.lv
In Reply to: [gentoo-user] How to find out to what file(...) writes goes on a idle system... by meino.cramer@gmx.de
1 Hi,
2
3 meino.cramer@×××.de writes:
4
5 > In the context of preserving the live of flash media by minimizing
6 > the count of unessary writes I want to know which
7 > application/daemon/etc is continous writing to that media and which
8 > """entity""" (file/pipe/fifo...) is receiving those writes...
9
10 You could use this:
11
12 # echo 1 > /proc/sys/vm/block_dump
13
14 then every read and write operation on block devices shows up in dmesg
15 with the PID, process name and the block id. (This can be a lot of
16 lines, so dmesg -c might be useful) I'm not exactly sure how to identify
17 which files belong to which block, though.
18
19 Regards
20 Johannes

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies