csd-background memory usage

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
hpmc13
Level 3
Level 3
Posts: 148
Joined: Tue Jun 04, 2013 4:26 pm

csd-background memory usage

Post by hpmc13 » Mon Jul 24, 2017 3:25 pm

Since upgrading to 18.2 Cinnamon, I've noticed in Top and Conky that the process csd-background's memory usage grows throughout the day. It starts out very low, but then climbs to 80-90 megs as time goes on. I realize that that's a pretty small amount - particularly considering i have 16 gigs installed - but I'm wondering if it will keep on going to point where it might become a problem. I shutdown completely each night, and sometimes reboot a couple times a day if I need windows, so I haven't been able to see how high it will go.

I run dual monitors, and I have my own backgrounds running in a slideshow. There are no backgrounds even remotely that big. If I kill the process the backgrounds no longer change every five minutes. inxi report follows:

Code: Select all

System:    Host: workpc Kernel: 4.10.0-27-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.4.4 (Gtk 3.18.9-1ubuntu3.3) Distro: Linux Mint 18.2 Sonya
Machine:   System: Gigabyte product: N/A
           Mobo: Gigabyte model: 990FXA-UD3 R5 v: x.x Bios: American Megatrends v: F2 date: 04/01/2015
CPU:       Octa core AMD FX-8350 Eight-Core (-MCP-) cache: 16384 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 70720
           clock speeds: max: 4400 MHz 1: 3400 MHz 2: 1400 MHz 3: 2100 MHz 4: 1400 MHz 5: 1400 MHz 6: 1400 MHz
           7: 1400 MHz 8: 3400 MHz
Graphics:  Card: NVIDIA GM206 [GeForce GTX 960] bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 driver: nvidia Resolution: 1280x1024@60.02hz, 1920x1080@60.00hz
           GLX Renderer: GeForce GTX 960/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 381.22 Direct Rendering: Yes
Audio:     Card-1 NVIDIA Device 0fba driver: snd_hda_intel bus-ID: 01:00.1 Sound: ALSA v: k4.10.0-27-generic
           Card-2 Advanced Micro Devices [AMD/ATI] SBx00 Azalia (Intel HDA) driver: snd_hda_intel bus-ID: 00:14.2
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: c000 bus-ID: 05:00.0
           IF: eth1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 1440.3GB (40.6% used) ID-1: /dev/sda model: ZOTAC_ZTSSD size: 120.0GB
           ID-2: /dev/sdb model: WDC_WD10EZEX size: 1000.2GB ID-3: /dev/sdc model: WDC_WD3200AAJS size: 320.1GB
Partition: ID-1: / size: 20G used: 12G (60%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 39G used: 3.6G (10%) fs: ext4 dev: /dev/sda2
           ID-3: swap-1 size: 2.14GB used: 0.00GB (0%) fs: swap dev: /dev/sda4
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 40.0C mobo: 28.8C gpu: 0.0:59C
           Fan Speeds (in rpm): cpu: 907 fan-2: 0 fan-3: 0 fan-4: 1300 fan-5: 0
Info:      Processes: 251 Uptime: 5:00 Memory: 1508.0/16011.4MB Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 
Running LM 19 Cinnamon

Petermint
Level 5
Level 5
Posts: 731
Joined: Tue Feb 16, 2016 3:12 am

Re: csd-background memory usage

Post by Petermint » Sat Jan 05, 2019 7:06 pm

csd-background starts at 18.4 MB on my LM 19.1. I have not watched it to see if it grows. I cannot see why it should use more than a MB as I have the background switched off.

The code is tiny and includes a mass of other software. Surely the only code it would contain is the interface to the GUI. The GUI should be reentrant code, letting csd-background connect without wasting memory on a separate copy of the code. In my machine, csd-background should read a tiny settings file, tell the GUI the background defaults to a plain colour, then disappear. What is the other 17.4 MB doing?

I suspect the authors load all the code for every possible combination of background then read the configuration file to find out most of the code is not needed. Surely they could split it up into components
csd-background-gradient
csd-background-image
csd-background-video
csd-background-netflix

Post Reply

Return to “Newbie Questions”