Date: Thu, 26 Jan 2006 11:05:32 -0600 (CST) From: Randy Schultz <schultz@sgi.com> To: freebsd-questions@freebsd.org Subject: did something change in SMP scheduling from 5.4 to 6.0? Message-ID: <Pine.BSF.4.63.0601261042150.41670@tdream.americas.sgi.com> In-Reply-To: <006001c61d47$973bccc0$1225a8c0@kittycat> References: <006001c61d47$973bccc0$1225a8c0@kittycat>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1353949967-1138295132=:41670 Content-Type: TEXT/PLAIN; charset=US-ASCII Hey all, I am curious if something changed in the way extra cpus are utilized in 6.0 vs. 5.4 in a SMP kernel. My system is a dual-proc Xeon box. When I was using 5.4 top would show both procs being used roughly the same, e.g. the "C" column usually had almost as many processes running on the second cpu as on the first. On Jan 23 I did a cvsup and compiled a new 6.0-STABLE SMP kernel. Now watching top I rarely see the second proc being used, even though roundrobin is enabled. FWIW, here's some possibly relevant config bits: Dude ? sysctl -a|egrep smp kern.timecounter.smp_tsc: 0 kern.smp.forward_roundrobin_enabled: 1 kern.smp.forward_signal_enabled: 1 kern.smp.cpus: 4 kern.smp.disabled: 0 kern.smp.active: 1 kern.smp.maxcpus: 16 Dude ? Dude ? sysctl -a|egrep hyperth machdep.hyperthreading_allowed: 0 I've attached the output of a typical top with some builds running. Unfortunately I don't have any saved data from 5.4. I do see the second processor being used but those times are rare. When it does happen it seems almost exclusively when I'm seriously hammering the system. This makes me think something has changed with 6.0 behind-the-scenes such that if the system doesn't need the extra power then it sticks to cpu 0. I poked around the release notes and handbook but failed to find anything on this topic. Am I all wet and simply have something misconfigured or indeed all is well with 6.x doing it's thing hugging cpu 0? -- Randy (schultz@sgi.com) 715-726-2832 email bodhisattva <*> "There is no fire like passion, there is no shark like hatred, there is no snare like folly, there is no torrent like greed." --0-1353949967-1138295132=:41670 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=smp.cpu Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.63.0601261105320.41670@tdream.americas.sgi.com> Content-Description: Content-Disposition: attachment; filename=smp.cpu bGFzdCBwaWQ6IDg2MzM2OyAgbG9hZCBhdmVyYWdlczogIDAuMzcsICAwLjMx LCAgMC4yMiAgICAgdXAgMisyMjozNDowMiAgMTA6MjE6NDINCjE0OCBwcm9j ZXNzZXM6IDIgcnVubmluZywgMTQ2IHNsZWVwaW5nDQpDUFUgc3RhdGVzOiAx NC45JSB1c2VyLCAgMC4wJSBuaWNlLCAxMC4yJSBzeXN0ZW0sICAwLjAlIGlu dGVycnVwdCwgNzQuOCUgaWRsZQ0KTWVtOiAzMTJNIEFjdGl2ZSwgOTYzTSBJ bmFjdCwgMTg3TSBXaXJlZCwgMTFNIENhY2hlLCAxMTJNIEJ1ZiwgNTI5TSBG cmVlDQpTd2FwOiA0MDk2TSBUb3RhbCwgNDA5Nk0gRnJlZQ0KDQogIFBJRCBV U0VSTkFNRSAgVEhSIFBSSSBOSUNFICAgU0laRSAgICBSRVMgU1RBVEUgIEMg ICBUSU1FICAgV0NQVSBDT01NQU5EDQo4NjEyMiByb290ICAgICAgICAxICAg OCAgICAwICAxNjEySyAgMTUwMEsgd2FpdCAgIDAgICAwOjAwIDE2LjUwJSBt YWtlDQo4NjMzNSByb290ICAgICAgICAxIDEzOSAgICAwICAgNTg0SyAgIDQ3 NksgUlVOICAgIDAgICAwOjAwIDE2LjUwJSBtYWtlDQo4NjI4OCByb290ICAg ICAgICAxICAtOCAgICAwICAxNjQ4SyAgMTE4NEsgcGlwZXJkIDAgICAwOjAw IDE2LjUwJSBzaA0KODU3Mzggcm9vdCAgICAgICAgMSAgLTggICAgMCAyMTI3 NksgMjA5MjRLIHBpcGVyZCAwICAgMDowMiAxNC45OSUgcnVieTE4DQo4NjEy MSByb290ICAgICAgICAxICAgOCAgICAwICAxNjM2SyAgMTE3Mksgd2FpdCAg IDAgICAwOjAwIDE0Ljk5JSBzaA0KICA2NTUgc2NodWx0eiAgICAgMSAgNzY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hLIHBhdXNlICAwICAgMDowMCAgMC4wMCUga3No DQo3OTYyOCBzY2h1bHR6ICAgICAxICA3NiAgICAwICAzMjkySyAgMjc4MEsg c2VsZWN0IDAgICAwOjAwICAwLjAwJSBzc2gNCg== --0-1353949967-1138295132=:41670--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.63.0601261042150.41670>