Bug 226997
Summary: | udevd read buffer too small. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | George Beshers <gbeshers> |
Component: | udev | Assignee: | Harald Hoyer <harald> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 5.0 | CC: | bmr, dchapman, holt, jhrozek, jh, oliver |
Target Milestone: | --- | Keywords: | OtherQA |
Target Release: | --- | ||
Hardware: | ia64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHBA-2007-0404 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-11-07 18:08:09 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 253733 | ||
Attachments: |
Description
George Beshers
2007-02-02 15:40:45 UTC
I have tested the above patch on a 64p 1TB HP Superdome and it does indeed speed up udev dramatically. I believe setting the buffer to 64k or, better yet, making it malloc the buffer and repeatedly growing the malloc if the read completely fills the buffer will cover all the different sizes of Altix systems we are currently shipping. Created attachment 149299 [details]
Patch sent to linux-hotplug-devel.net
The increase of the buffer to 32768 didn't work on a machine with 1024
apparent cpus. This patch does dynamic allocation so that large systems
will work without further changes.
George will post. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. George -- Although you will be posting the fix, reassigning the bug to the maintainer so he doesn't look track of it. Created attachment 153906 [details]
Patch modifies how /proc/stat is processed.
The patch has been sent upstream to udev-devel-list.
Simple and clear fix, Devel-ACK. Read ya, Phil Created attachment 154301 [details]
Patch against udev-110 accepted upstream.
No need to be in NEEDINFO for Comment #7. Red Hat Product Management and Engineering have evaluated this request and currently plan to include it in the next Red Hat Enterprise Linux minor release. Please note that its inclusion depends upon the successful completion of code integration and testing. Created attachment 156355 [details]
Patch to use upstream versions of mem_size_mb(), cpu_count(), and running_processes()
I actually created the patch against the 06/06/07 nightly
not as a direct replacement for the earlier patch.
This is fixed. Just a short question to you guys. Will this work with a 10000 CPU machine as well? For udev the answer is yes. The kernel might hit the hugepagesize limit for /proc/cpuinfo and /proc/stat. I believe in these cases that the machine will still boot just fine but udev would "only" use 1500 or so of the 10000 processors. I have not tried it :). I'm thinking - especially - about the LRZ, where since April 2007, there are running more than 9700 cores. Well, OK in one SSI, only 1024 cores. Can someone think about 9216 cores in one SSI? Joking... But maybe we should discuss that outside of bz :-) An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0404.html |