# RasPi Zero (W) help

**URL:** <https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539>\
**Category:** Raspberry Pi\
**Created:** [21 December 2021 06:07 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539 "2021-12-21T06:07:36Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [21 December 2021 06:07 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/1 "2021-12-21T06:07:36Z")

</div>

Recently I got _stung_ and updated my RasPi Z (W) to Buster.  
Originally (status quo) it was running at 20-30% CPU load. Fairly heavy memory usage. 80%.

Buster - all things being equal - 90-100% CPU load ALL THE TIME!

I was told that Buster eats memory. (Dunno)

So there has recently been a RasPi Z version 2 released.  
From what I have seen there is no difference.

I would like to get a machine with more memory to I hope get around this problem of 100% CPU load.

I’d prefer to not go to a full sized pie.

Suggestions?  
Or ideas for determining what is making the CPU load so high.  
Using HTOP the tasks are kernel tasks.  
(There wasn’t that many kernel tasks on the previous one.)

---

<div class="post-metadata">

**Author:** ![James84823](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@James84823](https://forum.core-electronics.com.au/u/James84823)\
**Post date:** [21 December 2021 06:57 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/2 "2021-12-21T06:57:47Z")

</div>

Hi Andrew,

Hmmm, what were you running before? Jessie?

Those original zeros are a bit slow, mostly due to the single core, this is fixed on the Zero 2, but memory capacity is the same.

Could you post a `htop` screenshot?

Are you running a desktop environment? Do you need to? What are you using your Pi for?

Keen to get to the bottom of this one!  
-James

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [21 December 2021 08:10 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/3 "2021-12-21T08:10:05Z")

</div>

Before I was running what ever it was TWO before Buster.

Sorry I don’t know the names that well.

HTOP screen shot.

 ![Screenshot from 2021-12-17 16-06-33](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/b/b8679e76dec2127f84badc019f510969c2a98ab3.png)

Ok, I should just do it and see the difference.

I have the GPU memory set to 64 - it was 128.  
I think there is a 256 option.  
And of course there is a 32.

Maybe I could try those and see what happens.  
I am running VNC as I am not that good with typing long path names in Ubuntu style O/S.  
VNC makes doing some things just that much easier.

---

<div class="post-metadata">

**Author:** ![James84823](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@James84823](https://forum.core-electronics.com.au/u/James84823)\
**Post date:** [21 December 2021 08:22 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/4 "2021-12-21T08:22:05Z")

</div>

Hi Andrew,

I’d say it’s the VNC that’s doing it. I’ve run into people here trying to VNC on a Zero, and having the same troubles that you are. They’ll probably pipe up to affirm.

Interested to see if running just SSH instead of VNC works better for you… At least to see how much better that makes it

-James

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [21 December 2021 08:30 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/5 "2021-12-21T08:30:19Z")

</div>

Well, as much as I would like to agree, I went in and `raspi-config` and disabled it.

Rebooted AFAIK and no change.

I’ll have to try again at some stage to be 100% sure.

But on the previous one: it had the VNC running quite happily with only about 305 CPU load and very few kernel tasks.

Yeah, ok. I get it. This is a big step up and a lot of things _under the hood_ have changed.

Just asking: Does the new(er) version of the Zero (version 2) have any more memory?  
I’m getting conflicting stories on the new release.  
I can’t see why they would release the RPZ2 if it doesn’t have more memory.

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [21 December 2021 22:58 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/6 "2021-12-21T22:58:29Z")

</div>

Hi Andrew,

The Pi Zero W and Pi Zero 2 W have the same amount of RAM (512MB).  
The major upgrade on the Pi Zero 2 W is the CPU, both are clocked around 1GHz but the Zero 2 W has a newer quad-core CPU which is much better suited to multitasking over a single-core CPU.

I tried VNC viewer on my Pi Zero W myself because I didn’t want to have to hunt around for a mini-HDMI cable and it was painfully slow just navigating the desktop so I’d be very surprised if VNC was working well for you while you also had NodeRED running on the machine. Lowering the resolution of the screen helped, but not enough to make it worth using VNC to access the Zero and do anything.

Looking at your HTOP screenshot it doesn’t look like you have run out of memory and the CPU is being used up by swap actions (using the storage as RAM when you run out) so it seems you’re just hitting the processors limit and more RAM may not make a difference anyway.

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [21 December 2021 23:01 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/7 "2021-12-21T23:01:12Z")

</div>

Thanks Trent.

I shall have to re-do my test then.

I’ll disable it with the command and make sure I reboot it too.

(Appreciated you checking it for me.)

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [21 December 2021 23:18 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/8 "2021-12-21T23:18:51Z")

</div>

Hi Andrew,

I’d be interested to hear your results as I only have my own experience to go off using VNC which wasn’t fantastic. After all, that’s what the forum is for sharing the knowledge so we can figure out why something isn’t working!

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [21 December 2021 23:23 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/9 "2021-12-21T23:23:35Z")

</div>

Well, sorry.

Bad news.

I `ssh` into it, `sudo raspi-config` and disabled the VNC.  
To be sure I rebooted.

Waited… Waited.  
Machine back up.

100% CPU load - high level of kernel tasks.

(Yes it is still booting to the GUI) That is something to do with auto mounting the USB stick.  
If it boots to CLI the USB stick isn’t mounted.  
I know: I have learn about `fstab`.

But!

Disabling the VNC doesn’t seem to fix the problem.

Just to share.

Oh, the red part did nearly disappear but it crept back fairly quickly.

Thoughts on the GPU memory allocation?  
Just now it is set to 64.  
Which way would/could help?

I don’t mind trying, but if I can reduce the number of times it would be better. 😉

 ![Screenshot from 2021-12-22 10-21-34](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/e/edb1c0bcfebe770cd6f3a958f49125fbc8abec31.png)

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [21 December 2021 23:31 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/10 "2021-12-21T23:31:42Z")

</div>

Ok, changed GPU from 64 yo 128.

VNC DISABLED.

Rebooted.

100% CPU load.

Maybe it is just Buster is memory hungry and isn’t suited to work nicely with 512 MB ram.

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [22 December 2021 00:00 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/11 "2021-12-22T00:00:30Z")

</div>

Hi Andrew,

I can see from your screenshots that your memory usage isn’t full, but I can see that you have `swap`ped recently, so you did run out of memory briefly (likely on startup). Swapping will load up your CPU more, but just coming close to your memory limit really shouldn’t.

As for things to trim, I’d say the desktop environment would be the first to go, You can use programs like WinSCP to mess around with your file system or move files over to the Pi if that’s what you’re missing:

> **[WinSCP](https://winscp.net/eng/index.php)**
>
> WinSCP is a popular free SFTP and FTP client for Windows, a powerful file manager that will improve your productivity. It supports also Amazon S3, FTPS, SCP and WebDAV protocols. Power users can automate WinSCP using .NET assembly.

Or perhaps set up a samba share so your PC can see it as a drive, and your Pi can still access it:

> **[Build a Raspberry Pi NAS — The MagPi magazine](https://magpi.raspberrypi.com/articles/build-a-raspberry-pi-nas)**
>
> Got a lot of digital stuff? Make it available anywhere in your home with your own Raspberry Pi network-attached storage

There are guides on automounting, I believe it’s also covered in the guide above too

> **[How to properly automount a drive in Ubuntu Linux](https://www.techrepublic.com/article/how-to-properly-automount-a-drive-in-ubuntu-linux/)**
>
> Need to create a proper fstab entry to automatically mount a drive in Linux? Find out how here.

Anything else that you can’t live without from the GUI?  
What’s your Pi currently being used for?

We’ll do some testing on our end to determine if your usage stats are normal, but in the meantime, let us know your thoughts on the above  
-James

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [22 December 2021 00:17 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/12 "2021-12-22T00:17:38Z")

</div>

Again,

Thanks.

Ok, the _John Dory_.

When I changed the GPU memory size, it would seem the `SWAP` became activated.  
I have read that this isn’t too bad, but it does kill the SD card as they aren’t designed to do that.  
And I’ve lost 3 SD cards in the past and they had `SWAP` files active.  
Though the problem could be power supply. Anyway.

the CPU load stays way up there for days. On the previous O/S it was 30%. So that’s 70% (now) that is an unaccountable load.

I’ll have to investigate WinSCP. (I use Ubuntu, but anyway…)

I have nfs installed (though yeah, that is more a windows thing) that was done a long time ago when I used a windows machine.

Is there much benefit to SAMBA over NFS?

The copying.  
That is making backups of Node-Red.  
Logs, etc.

Not a _server_ as such.  
But there are some … _quirks_.  
I can back up to anywhere I want, but there are permission problems so I backup to the `!/Public/......` so I can _easily_ mount from my main machine and get copies.

But after being stung with the SD cards failing, I log to the USB stick.  
I also copy the backups to the USB stick.

So I need to access the USB stick as well.  
Alas that is NTFS format.  
Reformatting them can be problematic if I want to read them on another machine.

Anyway…

Just now I am deep down a Node-Red rabbit hole.  
(Feature creep has set in sort of and there is a lot of redesign/rewriting of a lot of code and it is painful not having much background in how to do it _properly_).

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [22 December 2021 00:32 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/13 "2021-12-22T00:32:21Z")

</div>

Hi Andrew,

Ah, your workstation OS changes things a bunch,

I take back what I suggested for samba and WinSCP, NFS should work fine there.

I myself am a recovering Windows user, My next machine will run linux, but unfortunately there isn’t too much in the way of good CAD software, so I may have to resort to WINE or similar ☹

-James

P.S. the linux equivalent of WinSCP is just [sftp](http://manpages.ubuntu.com/manpages/trusty/man1/sftp.1.html), but since you’ve got a gui, mounting an NFS share you can see in /mnt/ in your file manager seems like the way to go

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [22 December 2021 00:47 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/14 "2021-12-22T00:47:41Z")

</div>

I was a _Windoze_ user (XP) was all I needed.

But the virus threat became problematic and… one thing and another.  
I had an _old_ RasPi (2A - with yellow composite RCA jack) sitting around.  
But no monitor.

Oh, and one day the HD of that machine died. Catastrophically!  
I used my laptop for a while, but it was painful.

One day when out walking I found a discarded monitor.  
With HDMI!

So I started to play with the RasPi.  
I was hooked.

I now have… 10+.

This as not helped because one day I saw something with Node-Red (well, I think it was. I wasn’t sure what Node-Red was at the time, but it just GRABBED me)  
I was doubly hooked.

Now I am trying to learn JavaScript.

No problems with the suggestions.  
I sometimes miss things.

I do have a _windoze 10_ machine, but that is for other things.

Just keeping one file system as much as possible is better when playing USB swappies.  
Though I have a network… anyway.

CAD software is kind of why I have the W10 machine. I use Fusion - autodesk.  
You can get yearly free subs to it. I’ve been ok now for about 3 years I think.

Oh, thanks for the name sftp. But it will have to go on the stack of things happening.  
Just now - alas - the stack is quite big.

There is this paradox about how I am doing things. LILO sort of thing.  
I try to get things done - to a point -before starting the next journey.

And a lot of this is a journey for me. I know _SFA_ about a lot of what I am doing.  
I just knuckle down and go at it.

Anyway, sorry. Gotta go.  
More programs to write.

---

<div class="post-metadata">

**Author:** ![Andrew41918](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Andrew41918](https://forum.core-electronics.com.au/u/Andrew41918)\
**Post date:** [29 December 2021 22:38 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/15 "2021-12-29T22:38:49Z")

</div>

Well, update:

Only because it (the Pi) was doing things I needed to get _it_ working.

With a bit of reluctance, I powered it down. It got to the stage where the machine wouldn’t last a day before locking up. Not really usable.

I took out the SD card and stuck it in a RasPi 3B.

Wow! Boots, runs fantastic!

Seems the RasPiZ(W) has been deprecated if using Buster for most things.

Now I just need to get another RasPi3B.

---

<div class="post-metadata">

**Author:** ![electron1979](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/electron1979/32/1941_2.png) [@electron1979](https://forum.core-electronics.com.au/u/electron1979)\
**Post date:** [7 January 2022 03:10 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/16 "2022-01-07T03:10:11Z")

</div>

WinSCP is so useful!

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [7 January 2022 03:15 UTC](https://forum.core-electronics.com.au/t/raspi-zero-w-help/12539/17 "2022-01-07T03:15:39Z")

</div>

Hi Peter,

Glad you think so!! It really came in handy when I was messing around with Klipper on a Pi and having to move config files back and forth.

Another option if you need more frequent access is a `samba` share running on the Pi mounted as a network drive, although WinSCP already makes it so easy.

-James
