sreadahead tries to access non-existing files

Bug #438449 reported by FriedChicken
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sreadahead (Ubuntu)
Won't Fix
Medium
Unassigned
ureadahead (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: sreadahead

It seems as sreadahead expects some files to be available but they don't exist.

$ sudo sreadahead --no-fork
tracing/events/fs/do_sys_open/enable: open failed (No such file or directory)
tracing/tracing_enabled: open failed (No such file or directory)
sda/queue/read_ahead_kb: open failed (No such file or directory)
/var/run/xauth/A:0-tdE5Ws: open failed (No such file or directory)

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 438449] [NEW] sreadahead tries to access non-existing files

On Mon, 2009-09-28 at 23:01 +0000, FriedChicken wrote:

> It seems as sreadahead expects some files to be available but they don't
> exist.
>
What kernel version are you using?

Provide "uname -a"

 status incomplete

Scott
--
Scott James Remnant
<email address hidden>

Changed in sreadahead (Ubuntu):
status: New → Incomplete
Revision history for this message
FriedChicken (domlyons) wrote :

This happens on two systems, both have all recent updates:
   $ uname -a
   Linux amilo 2.6.31-11-generic #38-Ubuntu SMP Fri Oct 2 11:55:55 UTC 2009 i686 GNU/Linux

By the way, the /var/run/xauth/-error has gone:
    $ sudo sreadahead --no-fork
   tracing/events/fs/do_sys_open/enable: open failed (No such file or directory)
   tracing/tracing_enabled: open failed (No such file or directory)
   sda/queue/read_ahead_kb: open failed (No such file or directory

Changed in sreadahead (Ubuntu):
status: Incomplete → New
Revision history for this message
Matt Zimmerman (mdz) wrote :

it looks like those particular errors are only displayed when sreadahead is doing readahead (as opposed to profiling), so it looks like those paths ended up in the pack somehow.

Assuming you can still reproduce this, can you attach /var/lib/sreadahead/pack to this bug?

Changed in sreadahead (Ubuntu):
status: New → Incomplete
Revision history for this message
Matt Zimmerman (mdz) wrote :

This sort of error could very well be normal, as files which existed when profiling was done could have been removed later.

Changed in sreadahead (Ubuntu):
importance: Undecided → Low
Revision history for this message
FriedChicken (domlyons) wrote :

Yes, I guess you are right:

   $ cat /var/lib/sreadahead/pack | LANG=C grep tracing/events/fs/do_sys_open/enable
   Binary file (standard input) matches

   $ cat /var/lib/sreadahead/pack | LANG=C grep tracing/tracing_enabled
   Binary file (standard input) matches

   $ cat /var/lib/sreadahead/pack | LANG=C grep sda/queue/read_ahead_kb
   Binary file (standard input) matches

Changed in sreadahead (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
FriedChicken (domlyons) wrote :

I assume the given path snippets are part of
   - /sys/kernel/debug/tracing/events/fs/do_sys_open
   - /sys/kernel/debug/tracing/tracing_enabled
   - /sys/block/sda/queue/read_ahead_kb

I have neither a clue why this files are in the pack-file nor why the paths are incomplete, but maybe it helps you in some way.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Err, thanks Matt.

However your diagnosis is quite incorrect, in fact this bug is more interesting. The missing paths that it can't open are the debugfs paths that sreadahead uses for tracing.

Changed in sreadahead (Ubuntu):
status: Confirmed → Triaged
importance: Low → Medium
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

ureadahead doesn't try and read these relative paths (which are caused by the tracing), you'll still see warnings about files that vanished between the trace and the readahead passes of course

Changed in sreadahead (Ubuntu):
status: Triaged → Fix Committed
Changed in ureadahead (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

ureadahead has now replaced sreadahead in both karmic (via -updates) and lucid

Changed in ureadahead (Ubuntu):
status: Fix Committed → Fix Released
Changed in sreadahead (Ubuntu):
status: Fix Committed → Won't Fix
Revision history for this message
Pieter Leclerc (pieterleclerc-deactivatedaccount) wrote :

Here it says that it's the other way around: "sreadahead has been replaced by ureadahead": http://packages.ubuntu.com/lucid/sreadahead

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.