Update to v151 High CPU Load due to Samba

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Update to v151 High CPU Load due to Samba

Post by mike175de »

Hi there,

after updating to the newest v151, my smdb load is - without connected user - always 100% (and more). Before the update there were any issues with Samba at all.

Due to the high load I stopped Samba cause the XU4-fan starts spinning every minute to reduce the heat.

The logs show nothing special - just things as the successful start of smdb and stuff like that.

Any hint for me?

Thx in advance for your help!

Mike
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Update to v151 High CPU Load due to Samba

Post by Fourdee »

Hi Mike,
The logs show nothing special - just things as the successful start of smdb and stuff like that.
Strange, anything in dmseg relating to samba/cifs/cpu, after boot end (usually 12/13 seconds):

Code: Select all

dmesg
Also which CPU governor are you running?

Code: Select all

cpu
Also check service status for any issues

Code: Select all

systemctl status smdb -l
systemctl status nmbd -l
If problems persist, could be early indicator of hardware failure (PSU/SD/Board). Try reinstalling Samba server:

Code: Select all

dietpi-software uninstall 96
dietpi-software install 96
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Re: Update to v151 High CPU Load due to Samba

Post by mike175de »

Hi Fourdeee,

Thx for your reply!

dmesg:
Please see the link: https://bozon.virser.de/?f=15938039568812 (links to my server where the txt-files was uploaded, due to the size)

systemctl status smdb -l:

Code: Select all

> systemctl status smdb -l
● smdb.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
Thats strange, because Webmin shows in the tasks section under CPU a running instance of smbd:

Code: Select all

Befehl	/usr/sbin/smbd -D
Prozess-ID	8006	Übergeordneter Prozess	/sbin/init
Besitzer	root	CPU	98.0 %
Größe	30.59 MB	Laufzeit	00:02:11
systemctl status nmbd -l:

Code: Select all

> systemctl status nmbd -l
● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
   Loaded: loaded (/etc/init.d/nmbd)
   Active: active (running) since Wed 2017-06-07 15:37:54 CEST; 1min 37s ago
  Process: 8026 ExecStart=/etc/init.d/nmbd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/nmbd.service
           └─8119 /usr/sbin/nmbd -D

Jun 07 15:37:54 DietPiServer nmbd[8026]: Starting NetBIOS name server: nmbd.
Jun 07 15:37:54 DietPiServer systemd[1]: Started LSB: start Samba NetBIOS nameserver (nmbd).
Thx again for your time and help!

Michael
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Re: Update to v151 High CPU Load due to Samba

Post by mike175de »

Hi Fourdee,

I uninstalled and reinstalled Samba but still the same: a very high load due to Samba.

cpu shows me:

Code: Select all

 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     61'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      200 MHz      200 MHz    1000 MHz
 CPU1         |      200 MHz      200 MHz    1000 MHz
 CPU2         |      200 MHz      200 MHz    1000 MHz
 CPU3         |      200 MHz      200 MHz    1000 MHz
 CPU4         |      700 MHz      200 MHz    1000 MHz
 CPU5         |      700 MHz      200 MHz    1000 MHz
 CPU6         |      800 MHz      200 MHz    1000 MHz
 CPU7         |      700 MHz      200 MHz    1000 MHz
And htop this:

Image

When i kill samba everything fine and the load is as expected.

Any more hints?

BTW: Its a new XU4 - in use for about 4 weeks now.

Thx a lot.

Michael
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Update to v151 High CPU Load due to Samba

Post by Fourdee »

Hi Michael,

Apologies for the delay.

Think we may need to check the logs on this one. I dont have it installed at the moment so unable to verify location, but cat all files in:

Code: Select all

/var/log/samba/

eg: I believe its in

Code: Select all

cat /var/log/samba/smbd.log
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply