-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetCpuCount: using get_nprocs() #1322
Conversation
get_nprocs() tests different ways to get the cpuCount. Therefore, if reading from /proc/stat encounters an error, other methods will be tested.
@check-spelling-bot ReportUnrecognized words, please review:
Previously acknowledged words that are now absentaadl Accu adoc asciidoctor autodetect autonumbering awt bavail bbd bc bootup capout chown Classloader classpath componentaction compositestructures concat configurator creatingdocsetswithdoxygen Dinstall dll doall Donatas donsim ecore eps errstr esac fprim getenv gethostbyname getmtime gmail Gnd GNDIF groupadd groupmod hdp HOMEPAGE hostent ifchange IFXML IJET includefile inorder INSTALLDIR instanceof interoperability isfgen isfpluginexec isfxmlwriter itcl javabuilder javac javanature javax jdt jf JFile jmi JOption junit kevensen magicdraw mcternan mdbasiccomponents mdinternalstructures mdkernel mdports mdprofiles mdxml mdzip memoize mngr mpmcs mscgen nasafprime netdb Netscape's NGAT nh nio nomagic nondetached nroff OMG's OS'es placeholders PLUGINDIR Prepends println propvals refman RHEL RPISCHEDCONTEXTS saikiranra setuptools Simkunas SOCKETIPDRIVERTYPES SQL's sramanan startword strcat strcpy submenu tcl templating textui tgz tmpd tmpdir toclevels toolbar ubuntu uk ul uml useradd usermod ve virtualenv vmsize vn watney wget workaround workspaces xargs Xmx Xss XvfbSome files were were automatically ignoredThese sample patterns would exclude them:
You should consider adding them to:
File matching is via Perl regular expressions. To check these files, more of their words need to be in the dictionary than not. You can use To accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the git@github.com:inPhraZ/fprime.git repository
|
* GetCpuCount: using get_nprocs() get_nprocs() tests different ways to get the cpuCount. Therefore, if reading from /proc/stat encounters an error, other methods will be tested. * lestarch: sp Co-authored-by: M Starch <LeStarch@googlemail.com>
Change Description
Modifying getCpuCount implementation in Linux.
Rationale
get_nprocs() tests different ways to get the cpuCount.
Therefore, if reading from /proc/stat encounters an error, other methods will be tested.
Testing/Review Recommendations
https://code.woboq.org/userspace/glibc/sysdeps/unix/sysv/linux/getsysstats.c.html#__get_nprocs
Future Work
None