Hi!
> really we should be using `getconf _NPROCESSORS_ONLN` instead and 
> centralizing 
> this parsing logic.  /proc/cpuinfo is directly accessed by many scripts.  the 
> -i suggestion i provided came from its usage in those other files which, 
> according to your findings, are also broken.
> 
> i'd suggest updating tools/apicmds/ to add a new helper program like 
> `tst_ncpus` which will call sysconf() and we convert all of our .sh scripts 
> from reading /proc/cpuinfo to calling that program.

That is coincidentally soultion I would about to propose.

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to