From: Asias He <asias@redhat.com>
To: fio@vger.kernel.org
Cc: Jens Axboe <axboe@kernel.dk>
Subject: Why fio triggers reading of device serial number
Date: Fri, 18 May 2012 14:28:27 +0800 [thread overview]
Message-ID: <4FB5EC0B.7010304@redhat.com> (raw)
In-Reply-To: <4FB5EA0D.7030402@redhat.com>
Hi, List
I noticed that fio triggers reading of device serial number when fio
starts (one read) and stops (lots of read). I was wondering if fio was
reading the sysfs attribute directly in fio's code,
e.g./sys/block/vda/serial, or it triggered something which make udevd to
read it.
trace-cmd shows it seems udevd is reading:
udevd-6856 [006] xxx: function: dev_attr_show
udevd-6856 [006] xxx: function: virtblk_serial_show
Any ideas? Thanks.
UDEV RULES
---------------
/lib/udev/rules.d/60-persistent-storage.rules
KERNEL=="vd*[!0-9]", ATTRS{serial}=="?*",
ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/virtio-$env{ID_SERIAL}"
KERNEL=="vd*[0-9]", ATTRS{serial}=="?*", ENV{ID_SERIAL}="$attr{serial}",
SYMLINK+="disk/by-id/virtio-$env{ID_SERIAL}-part%n"
FIO Config
-------------
[global]
bs=512
size=100G
direct=1
#ioengine=libaio
ioengine=sync
numjobs=256
filename=/dev/vda
thread
[seq-read-write]
rw=rw
--
Asias
next parent reply other threads:[~2012-05-18 6:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4FB5EA0D.7030402@redhat.com>
2012-05-18 6:28 ` Asias He [this message]
2012-05-18 10:00 ` Why fio triggers reading of device serial number Jens Axboe
2012-05-18 14:10 ` Asias He
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FB5EC0B.7010304@redhat.com \
--to=asias@redhat.com \
--cc=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.