Eric W. Biederman wrote: > But uname is noticeably faster than sysctl and uname is more portable > across linux flavors. So updating the glibc pthread code to use > uname looks like the right way to implement is_smp_system. This is (was?) not the universal through. We used uname at some point but then I did some profiling and sysctl turned out to be faster. If the reverse is true now I can certainly look into changing this but the evidence and ideally has to be there. The simplicity of the uname code should mean that it's faster. In a year or two I'll remove the test anyway. By then there will likely not be any UP kernels on reasonable machines anymore and I can drop all the conditional code. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
Attachment:
signature.asc
Description: OpenPGP digital signature
- Follow-Ups:
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: Roland McGrath <[email protected]>
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- References:
- [PATCH] sysctl: Document that sys_sysctl will be removed.
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH] sysctl: Document that sys_sysctl will be removed.
- From: "Randy.Dunlap" <[email protected]>
- Re: [PATCH] sysctl: Document that sys_sysctl will be removed.
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH] sysctl: Document that sys_sysctl will be removed.
- From: Arjan van de Ven <[email protected]>
- [PATCH] Use uname not sysctl to get the kernel revision
- From: [email protected] (Eric W. Biederman)
- [PATCH] sysctl: Document that sys_sysctl will be removed.
- Prev by Date: Re: [Patch] statistics infrastructure - update 10
- Next by Date: 2.6.18-rc1-git4 and 2.6.18-rc1-mm1 OOM's on boot
- Previous by thread: [PATCH] Use uname not sysctl to get the kernel revision
- Next by thread: Re: [PATCH] Use uname not sysctl to get the kernel revision
- Index(es):