D20933: Increase buffer for cpuinfo

Christoph Feck noreply at phabricator.kde.org
Wed May 1 19:53:36 BST 2019


cfeck added a comment.


  The info for each CPU is indeed a bit larger than 1K. Using 64KiB will only be sufficient for 32 CPUs, the rest would be wasted. As the comment indicates, Linux supports up to 4096 CPUs, so the buffer should be much bigger, or (ideally) the code refactored to do incremental parsing of the `/proc/cpuinfo` content.

REPOSITORY
  R106 KSysguard

REVISION DETAIL
  https://phabricator.kde.org/D20933

To: tilmank, #plasma, cfeck
Cc: pino, plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190501/78555b2f/attachment.html>


More information about the Plasma-devel mailing list