Bug 217595
| Summary: | sysctl usage | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karel Zak <kzak> | ||||
| Component: | initscripts | Assignee: | Bill Nottingham <notting> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Brock Organ <borgan> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6 | CC: | rvokal | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 8.52-1 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2007-04-16 23:38:12 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: | |||||||
| Attachments: |
|
||||||
Created attachment 152727 [details]
diff
Here's what's going in 8.52-1. Cuts the time for showsysctl from 16 seconds to
a little over 1.
|
Please, see /etc/sysconfig/network-scripts/init.ipv6-global. There is used "sysctl -a | grep", although the sysctl command supports selection. It means sysctl -a | grep "^net\.ipv6\.conf\." could be replaced with: sysctl net.ipv6.conf Why? See: # sysctl net.ipv6.conf | wc -l 84 # sysctl -a | wc -l 608 To be honest, the way how this init script reads list of interfaces is *ugly*. sysctl -a | grep "^net\.ipv6\.conf\." | awk -F. '{ print $4 }' | sort -u should be replaced with: ls /proc/sys/net/ipv6/conf/