Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 155155 Details for
Bug 240392
irq smp_affinity should be all cpus by default
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
new patch to handle one shot specific settings and reset of affinity
irqbalance.patch (text/plain), 1.73 KB, created by
Neil Horman
on 2007-05-22 11:35:59 UTC
(
hide
)
Description:
new patch to handle one shot specific settings and reset of affinity
Filename:
MIME Type:
Creator:
Neil Horman
Created:
2007-05-22 11:35:59 UTC
Size:
1.73 KB
patch
obsolete
>? irqbalance-0.55 >? irqbalance-0.55.tar.gz >Index: irqbalance.init >=================================================================== >RCS file: /cvs/dist/rpms/irqbalance/RHEL-5/irqbalance.init,v >retrieving revision 1.6 >diff -u -r1.6 irqbalance.init >--- irqbalance.init 17 Apr 2007 19:06:19 -0000 1.6 >+++ irqbalance.init 22 May 2007 11:27:05 -0000 >@@ -42,6 +42,41 @@ > > RETVAL=0 > >+reset_masks() { >+ local i; >+ local j; >+ local mask_size; >+ local mask; >+ >+ >+ for i in `ls /proc/irq` >+ do >+ mask="" >+ mask_size=`cat /proc/irq/$i/smp_affinity | wc -c` >+ #for some reason wc count the newline character in them >+ let mask_size=$mask_size-1 >+ for j in `seq 1 1 $mask_size` >+ do >+ mask=$mask"f" >+ done >+ echo $mask >> /proc/irq/$i/smp_affinity >+ done >+} >+ >+set_specific_masks() { >+ local i; >+ local irqnum; >+ >+ for i in `ls /etc/sysconfig/irqbalance_masks/*.mask` >+ do >+ irqnum=`echo $i | cut -d"/" -f5 | cut -d"." -f1` >+ if [ -d /proc/irq/$irqnum ] >+ then >+ cat /etc/sysconfig/irqbalance_masks/$irqnum.mask >> /proc/irq/$irqnum/smp_affinity >+ fi >+ done >+} >+ > start() { > if [ -n "$ONESHOT" -a -f /var/lock/irqbalance ]; then > exit 0 >@@ -51,8 +86,14 @@ > then > export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK > fi >- daemon irqbalance $ONESHOT $IRQ_AFFINITY >- RETVAL=$? >+ if [ -n "$SPECIFIC_MASKS" ] >+ then >+ set_specific_masks >+ RETVAL=0 >+ else >+ daemon irqbalance $ONESHOT $IRQ_AFFINITY >+ RETVAL=$? >+ fi > echo > if [ $RETVAL -eq 0 ]; then > if [ -n "$ONESHOT" ]; then >@@ -69,6 +110,7 @@ > echo -n $"Stopping $prog: " > killproc irqbalance > RETVAL=$? >+ reset_masks > echo > [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance > return $RETVAL
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240392
:
154889
|
155146
|
155155
|
155291
|
155390