<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrfutil uses a large amount of CPU time when run under Linux.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116356/nrfutil-uses-a-large-amount-of-cpu-time-when-run-under-linux</link><description>I have found that in Linux, &amp;quot;nrfutil toolchain-manager launch --shell&amp;quot; is starting a process that uses almost 20% of the CPU according to the top utility. I have found this directly on a Ubuntu machine and also with Windows Subsystem for Linux. I may</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Nov 2024 13:48:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116356/nrfutil-uses-a-large-amount-of-cpu-time-when-run-under-linux" /><item><title>RE: nrfutil uses a large amount of CPU time when run under Linux.</title><link>https://devzone.nordicsemi.com/thread/510901?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 13:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c6f4fbb-5ff3-430b-babb-78e4ad262726</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Great. Thank you, Charlie.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil uses a large amount of CPU time when run under Linux.</title><link>https://devzone.nordicsemi.com/thread/510899?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 13:36:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adc72cd8-09f3-4596-a048-2d1f7c864782</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Burt,&lt;/p&gt;
&lt;p&gt;Thank you for sharing your observations. I can confirm that this behavior is repeatable on Ubuntu systems, including versions 22.04, 24.04, and WSL Ubuntu.&lt;/p&gt;
&lt;p&gt;I have reported this potential improvement to our nrfutil developers, and an enhancement will hopefully come in the near future update. I will keep you informed of any progress.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil uses a large amount of CPU time when run under Linux.</title><link>https://devzone.nordicsemi.com/thread/510753?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 15:23:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bfedda9-f9a9-456d-8f08-4d0a62959d53</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;I tried it using WSL: I added a WSL Ubuntu-22.04.5 machine to my Windows machine (I had already tested with the default 24.04.1 and on a regular Linux machine (non VM) as I originally stated). I decided to install the latest toolchain: 2.8.0 as long as it now exists. I get the same exact behavior as previously. Running the &amp;quot;top&amp;quot; command, the first process listed is nrfutil. I probably can only set up a different type of virtual machine (like VirtualBox) to illustrate another 22.04 instance, but the WSL seems to mirror a physical machine. Yeah, too much work to go beyond what I have already done!&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;
&lt;p&gt;(v2.8.0) burt@T450S:~$ top&lt;br /&gt;top - 10:05:05 up 18 min, 2 users, load average: 0.02, 0.15, 0.09&lt;br /&gt;Tasks: 30 total, 1 running, 29 sleeping, 0 stopped, 0 zombie&lt;br /&gt;%Cpu(s): 0.5 us, 1.6 sy, 0.0 ni, 97.8 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st&lt;br /&gt;MiB Mem : 5866.8 total, 116.3 free, 455.9 used, 5294.6 buff/cache&lt;br /&gt;MiB Swap: 2048.0 total, 2048.0 free, 0.0 used. 5121.8 avail Mem&lt;/p&gt;
&lt;p&gt;PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND&lt;br /&gt; 796 burt 20 0 24992 10112 8628 S &lt;span style="color:#0000ff;font-size:150%;"&gt;18.9&lt;/span&gt; 0.2 0:02.11 nrfutil&lt;/p&gt;
&lt;p&gt;1 root 20 0 165772 10892 8076 S 0.0 0.2 0:01.15 systemd&lt;br /&gt; 2 root 20 0 2460 1340 1224 S 0.0 0.0 0:00.00 init-sy+&lt;br /&gt; 6 root 20 0 2476 196 196 S 0.0 0.0 0:00.01 init&lt;br /&gt; 62 root 19 -1 47736 14548 13516 S 0.0 0.2 0:00.54 systemd+&lt;br /&gt; 85 root 20 0 21704 5580 4388 S 0.0 0.1 0:00.74 systemd+&lt;br /&gt; 105 systemd+ 20 0 25664 12436 8080 S 0.0 0.2 0:00.20 systemd+&lt;br /&gt; 119 systemd+ 20 0 89364 6548 5744 S 0.0 0.1 0:00.20 systemd+&lt;br /&gt; 167 root 20 0 4308 2752 2516 S 0.0 0.0 0:00.01 cron&lt;br /&gt; 168 message+ 20 0 8588 4552 4008 S 0.0 0.1 0:00.22 dbus-da+&lt;br /&gt; 173 root 20 0 30044 18132 9328 S 0.0 0.3 0:00.20 network+&lt;br /&gt; 174 syslog 20 0 222404 7056 4256 S 0.0 0.1 0:00.06 rsyslogd&lt;br /&gt; 177 root 20 0 15332 7584 6600 S 0.0 0.1 0:00.23 systemd+&lt;br /&gt; 213 root 20 0 107128 20232 12052 S 0.0 0.3 0:00.16 unatten+&lt;br /&gt; 284 root 20 0 7528 4892 3972 S 0.0 0.1 0:00.01 login&lt;br /&gt; 337 burt 20 0 16964 9200 7704 S 0.0 0.2 0:00.17 systemd&lt;br /&gt; 338 burt 20 0 103288 3308 12 S 0.0 0.1 0:00.00 (sd-pam)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil uses a large amount of CPU time when run under Linux.</title><link>https://devzone.nordicsemi.com/thread/510621?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 08:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2075eb73-fc5c-495e-bfde-42c0fba1b41e</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Burt,&lt;/p&gt;
&lt;p&gt;I asked my colleague to have a try on&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;ubuntu 22.04 and do not see the increased cpu usage. I will try to get one with ubuntu 2.4.04 to do test.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;At the same time, could you proivde more informaiton about your PC(like processer) and system?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Best regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Charlie&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil uses a large amount of CPU time when run under Linux.</title><link>https://devzone.nordicsemi.com/thread/510532?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 14:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64e61f37-6ed5-42c3-b11a-400e4bf83f65</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thanks, Charlie. Very nice. I was at first thrown off by the back quotes, but then realized they are just delimiters for the command. And it would be nice for me to have some basic understanding of why the usual &amp;quot;launch --shell&amp;quot; uses so much power, so I appreciate any information (or actions) from the developer.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil uses a large amount of CPU time when run under Linux.</title><link>https://devzone.nordicsemi.com/thread/510439?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 10:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23be9a16-19a8-49f2-85dc-00e933508013</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;HI Burt,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can try to export the toolchain env to your current shell by running this command `source &amp;lt;(nrfutil toolchain-manager env --as-script --ncs-version v2.7.0)`.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This will hopefully save some CPU power if you really concern. I will feedback to developer to see if there are some optimization can be done.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>