From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@openembedded.org
Subject: Re: invalidating udev cache, how?
Date: Thu, 04 Dec 2008 18:35:10 +0100 [thread overview]
Message-ID: <gh94cf$p59$2@ger.gmane.org> (raw)
In-Reply-To: <20081204161543.GT16628@smtp.west.cox.net>
On 04-12-08 17:15, Tom Rini wrote:
> On Thu, Dec 04, 2008 at 05:05:58PM +0100, Koen Kooi wrote:
>> Hi,
>>
>> The udev 124 has cache (/etc/dev.tar) to avoid doing the coldplug udev
>> dance that can take a few seconds to a minute depending on machine speed
>> and kernel options. It is working a bit too well at the moment:
>>
>> * user boots image with 2.6.26 kernel on an omap board
>> * user gets /dev/fb0
>> * user fixes the bootargs in uboot to enable the overlay
>> * user doesn't get /dev/fb1
>>
>> so remove /etc/dev.tar and reboot: /dev/fb1 appears.
>>
>> I also encountered a case where the permissions on /dev/null where wrong
>> during first boot (it's a mystery why that happened) and udev cached
>> those making ssh daemons fail on boot.
>>
>> My current ideas:
>>
>> 1) remove /etc/dev.tar if its> x weeks old
>> 2) recreate it on shutdown
>> 3) remove it after x times
>>
>> option 1) breaks on systems without an RTC and/or no /etc/timestamp
>> option 2) moves the slowness to shutdown
>> option 3) requires extra logic and filesystem access
>>
>> and all options don't fix the first case I mentioned, they all take a
>> while to make /dev/fb1 appear.
>>
>> The key is that it should be transparent to users, so adding a check for
>> .e.g 'ignore_dev.tar=1' in bootargs wouldn't work, since that implies
>> that users are aware of the problem and know how to 'fix' it.
>>
>> Does anyone have other ways to invalidate the cache, and if not, which
>> option would get your vote?
>
> 2 is a different (and perhaps not as) slow. Also, prepopulate the cache
> with fb1? Or is this all done on the live system with nothing done
> during image creation?
It's done during first boot, since as the problem points out everything
is highly dependant on bootloader/kernel/moonphase.
regards,
Koen
next prev parent reply other threads:[~2008-12-04 17:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-04 16:05 invalidating udev cache, how? Koen Kooi
2008-12-04 16:15 ` Tom Rini
2008-12-04 17:35 ` Koen Kooi [this message]
2008-12-04 18:49 ` Tom Rini
2008-12-04 19:02 ` Koen Kooi
2008-12-04 19:17 ` Tom Rini
2008-12-04 16:35 ` Thomas Kunze
2008-12-04 17:03 ` Koen Kooi
2008-12-04 16:58 ` Mike (mwester)
2008-12-04 17:09 ` Mike (mwester)
2008-12-04 17:41 ` Koen Kooi
2008-12-04 18:50 ` Tom Rini
2009-03-03 5:11 ` Denys Dmytriyenko
2009-03-03 7:24 ` Koen Kooi
2009-03-03 15:16 ` Tom Rini
2008-12-04 17:11 ` Koen Kooi
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='gh94cf$p59$2@ger.gmane.org' \
--to=k.kooi@student.utwente.nl \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@openembedded.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.