* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
@ 2011-07-09 15:19 ` bugzilla-daemon
2011-07-10 3:49 ` bugzilla-daemon
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-09 15:19 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
mkkot <marcin2006@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marcin2006@gmail.com
Platform|All |i386
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
2011-07-09 15:19 ` [Bug 39072] " bugzilla-daemon
@ 2011-07-10 3:49 ` bugzilla-daemon
2011-07-11 3:15 ` bugzilla-daemon
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-10 3:49 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
Theodore Tso <tytso@mit.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tytso@mit.edu
--- Comment #1 from Theodore Tso <tytso@mit.edu> 2011-07-10 03:48:59 ---
By enabling the jbd2_run_stats tracepoint, I'm seeing a handful of handles
getting started every 5 seconds.
If I go into single user mode, with all user daemons killed off, jbd2 doesn't
trigger. So it's one of the userspace daemons which is causing file system
activity.
I don't know why iotop isn't showing the activity, but I'm pretty sure that's a
shortcoming of iotop.
I'll add some jbd2 trace points so we can see what is constantly starting jbd2
handles. But my quick testing seems to indicate to me that jbd2 is functioning
correctly, and it's active because something from userspace is ticking the file
system.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
2011-07-09 15:19 ` [Bug 39072] " bugzilla-daemon
2011-07-10 3:49 ` bugzilla-daemon
@ 2011-07-11 3:15 ` bugzilla-daemon
2011-07-11 9:14 ` bugzilla-daemon
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-11 3:15 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
Lars Stokholm <lars.stokholm@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lars.stokholm@gmail.com
--- Comment #2 from Lars Stokholm <lars.stokholm@gmail.com> 2011-07-10 20:08:51 ---
I just wanted to say that I agree
--- Comment #3 from Lars Stokholm <lars.stokholm@gmail.com> 2011-07-10 20:13:38 ---
Oops. Sorry, I'm very new to this bug list, I committed before I should have.
I just wanted to say that I agree with you Theodore. Going into single user
mode helps. In fact just killing off my daemons (syslog-ng, cron and so on)
along with X was enough. I didn't have to go to single user mode.
--- Comment #4 from Theodore Tso <tytso@mit.edu> 2011-07-11 03:15:46 ---
Created an attachment (id=65212)
--> (https://bugzilla.kernel.org/attachment.cgi?id=65212)
Journal tracepoint patch
The following patch should help people figure out which process is responsible
for starting an jbd2 transaction handle. After applying the patch, enable it
via:
echo 1 > /sys/kernel/debug/tracing/events/ext4/ext4_journal_start/enable
echo 1 > /sys/kernel/debug/tracing/events/jbd2/jbd2_run_stats/enable
cat /sys/kernel/debug/tracing/trace_pipe
... and wait.
(All of this assumes you have ftrace enabled, of course).
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
` (2 preceding siblings ...)
2011-07-11 3:15 ` bugzilla-daemon
@ 2011-07-11 9:14 ` bugzilla-daemon
2011-07-11 9:21 ` bugzilla-daemon
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-11 9:14 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
--- Comment #5 from Lars Stokholm <lars.stokholm@gmail.com> 2011-07-11 09:14:01 ---
Created an attachment (id=65282)
--> (https://bugzilla.kernel.org/attachment.cgi?id=65282)
Output from trace_pipe
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
` (3 preceding siblings ...)
2011-07-11 9:14 ` bugzilla-daemon
@ 2011-07-11 9:21 ` bugzilla-daemon
2011-07-11 10:26 ` bugzilla-daemon
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-11 9:21 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
--- Comment #6 from Lars Stokholm <lars.stokholm@gmail.com> 2011-07-11 09:21:47 ---
As you can see I uploaded the trace_pipe content from a little more than 10
minutes of idling on my part. There's a lot of writes from syslog-ng (as
expected).
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
` (4 preceding siblings ...)
2011-07-11 9:21 ` bugzilla-daemon
@ 2011-07-11 10:26 ` bugzilla-daemon
2011-07-11 10:49 ` bugzilla-daemon
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-11 10:26 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
--- Comment #7 from Theodore Tso <tytso@mit.edu> 2011-07-11 10:26:45 ---
Lars, thanks for trying out the tracepoint.
Marcin, would it be convenient / posible for you to give this patch a try?
And would you be willing to work with some of the other folks at Arch linux and
Ubuntu? More importantly, once you find the guilty parties that are
constantly syslogging or constantly modifying files (log files or database
files or whatever), can you help with filing bugs upstream with the
applications in question?
The reason people with many different applications are seeing this problem is
because many application writers are careless with their programming, and so we
need as many people as possible investigating problems and complaining to the
application programmers.
Thanks!
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
` (5 preceding siblings ...)
2011-07-11 10:26 ` bugzilla-daemon
@ 2011-07-11 10:49 ` bugzilla-daemon
2011-07-13 19:57 ` bugzilla-daemon
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-11 10:49 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
--- Comment #8 from mkkot <marcin2006@gmail.com> 2011-07-11 10:49:19 ---
Yes, of course, I was already asking for some help with this in archlinux
forum. But due to an examu it has to wait until tomorrow, sorry.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
` (6 preceding siblings ...)
2011-07-11 10:49 ` bugzilla-daemon
@ 2011-07-13 19:57 ` bugzilla-daemon
2011-07-14 17:02 ` bugzilla-daemon
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-13 19:57 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
--- Comment #9 from mkkot <marcin2006@gmail.com> 2011-07-13 19:57:55 ---
Okay, thanks to this patch most people agreed it's cron which triggers syslog
to write. I'm not convinced so since yesterday trying to compile kernel but had
some difficulties (first of all, thought it will take 15 minutes on my pc,
phew). Need some more time but I'm going to test this patch for sure.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
` (7 preceding siblings ...)
2011-07-13 19:57 ` bugzilla-daemon
@ 2011-07-14 17:02 ` bugzilla-daemon
2011-07-14 17:17 ` bugzilla-daemon
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-14 17:02 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
mkkot <marcin2006@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #10 from mkkot <marcin2006@gmail.com> 2011-07-14 17:02:39 ---
After 5 and half hour of compilation ;) I have some results:
- command sysctl vm.block_dump=1 (so I can see writes and reads with dmesg |
grep -e READ -e WRITE) makes syslog-ng to write every few seconds which
triggers jbd2 as well. So I fell in my own trap. Killing syslog helps there.
- console-kit-daemon also triggers jbd2. I'm not sure why but it writes over
and over again in text-mode. Killing it helps until you log in within another
console, then it starts again. It quiets in X mode, though. Strange.
- Killing console-kit-daemon in text-mode enables possibility to spin-down the
disk for a minute or two. Then some pdflush or cron job starts.
So it seems there is nothing wrong with ext4. Anyway, thanks for the patch, it
was very helpful to determine what is wrong and solve people's problems.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
` (8 preceding siblings ...)
2011-07-14 17:02 ` bugzilla-daemon
@ 2011-07-14 17:17 ` bugzilla-daemon
2011-07-14 17:25 ` bugzilla-daemon
2011-07-14 17:30 ` bugzilla-daemon
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-14 17:17 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
Eric Sandeen <sandeen@redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sandeen@redhat.com
--- Comment #11 from Eric Sandeen <sandeen@redhat.com> 2011-07-14 17:17:39 ---
It would be worth filing bugs, or at least asking about, those applications.
If syslog-ng is syncing every few seconds without writing any data, that sounds
like a bug.
I collected some of these for fedora, for a while:
"Tracker bug for over-eager apps that won't let disks spin down"
https://bugzilla.redhat.com/show_bug.cgi?id=454582
but I probably need to go hunting again.
-Eric
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
` (9 preceding siblings ...)
2011-07-14 17:17 ` bugzilla-daemon
@ 2011-07-14 17:25 ` bugzilla-daemon
2011-07-14 17:30 ` bugzilla-daemon
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-14 17:25 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
--- Comment #12 from mkkot <marcin2006@gmail.com> 2011-07-14 17:25:48 ---
It does in special circumstances which is vm.block_dump enabled. For the rest
go to: https://lists.balabit.hu/pipermail/syslog-ng/2011-July/016893.html
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 39072] jbd2 writes on disk every few seconds
2011-07-09 15:12 [Bug 39072] New: jbd2 writes on disk every few seconds bugzilla-daemon
` (10 preceding siblings ...)
2011-07-14 17:25 ` bugzilla-daemon
@ 2011-07-14 17:30 ` bugzilla-daemon
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-07-14 17:30 UTC (permalink / raw)
To: linux-ext4
https://bugzilla.kernel.org/show_bug.cgi?id=39072
--- Comment #13 from Eric Sandeen <sandeen@redhat.com> 2011-07-14 17:30:08 ---
Oh, right, it's a heisenbug; with block_dump enabled you constantly generate
log traffic which must be written, which generates log traffic which must be
written, which generates log traffic which must be written, which ... ;)
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread