Cinnamon CPU use

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
blakeyed

Cinnamon CPU use

Post by blakeyed »

Hello,

I've just installed Linux Mint 17.1 in my media center computer (it's a mini-pc with Intel(R) Atom(TM) CPU D510 @ 1.66GHz , 2Gb RAM and Nvidia ION GT218). It has Linux Mint 14 installed yesterday. The system is running well but I feel it can run better (it's not as smooth as with LM14). I'm using propietary Nvidia drivers.
I've found Cinnamon is using between 10% and 20% CPU almost all the time.

I don't know how to track this, and I did:
$ sudo strace -p `pidof cinnamon`

And I see this again and again:
[pid 4718] poll([{fd=6, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=6, revents=POLLOUT}])
[pid 4718] writev(6, [{"&/\2\0j\2\0\0", 8}, {NULL, 0}, {"", 0}], 3) = 8
[pid 4718] poll([{fd=6, events=POLLIN}], 1, 4294967295) = 1 ([{fd=6, revents=POLLIN}])
[pid 4718] recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\1\1\237^\0\0\0\0j\2\0\0~B\301\1\240\5\237\1\240\5\237\1\0\0\0\0\0\0\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
[pid 4718] recvmsg(6, 0x7fffd7bc0b30, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 4718] recvmsg(6, 0x7fffd7bc0b30, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 4718] recvmsg(6, 0x7fffd7bc2b30, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 4718] poll([{fd=35, events=POLLIN}, {fd=5, events=POLLIN}, {fd=3, events=POLLIN}, {fd=6, events=POLLIN}, {fd=18, events=POLLIN}, {fd=25, events=POLLIN}, {fd=31, events=POLLIN}, {fd=32, events=POLLIN}, {fd=33, events=POLLIN}, {fd=34, events=POLLIN}, {fd=27, events=POLLIN}, {fd=26, events=POLLIN}, {fd=29, events=POLLIN}], 13, 36) = 0 (Timeout)
[pid 4718] poll([{fd=6, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=6, revents=POLLOUT}])
[pid 4718] writev(6, [{"&/\2\0j\2\0\0", 8}, {NULL, 0}, {"", 0}], 3) = 8
[pid 4718] poll([{fd=6, events=POLLIN}], 1, 4294967295) = 1 ([{fd=6, revents=POLLIN}])
[pid 4718] recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\1\1\240^\0\0\0\0j\2\0\0~B\301\1\240\5\237\1\240\5\237\1\0\0\0\0\0\0\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
[pid 4718] recvmsg(6, 0x7fffd7bc1260, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 4718] recvmsg(6, 0x7fffd7bc1260, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 4718] recvmsg(6, 0x7fffd7bc2b30, 0) = -1 EAGAIN (Resource temporarily unavailable)

I couldn't get what this fd=6 is but I think it is the main performance waster.

Any ideas?

Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
BlueKnight

Re: Cinnamon CPU use

Post by BlueKnight »

blakeyed wrote:I'm using propietary Nvidia drivers.
Where did you install the drivers from?

Installing the drivers from the "Driver Manager" is the recommended way. I tried installing the "NVIDIA*.run" and the GLX extension was somewhat broken (i.e. not working as intended).
blakeyed

Re: Cinnamon CPU use

Post by blakeyed »

Hello,

Yes I've used the Driver Manager. Installed nvidia 331 (not 331-updaes).

Thanks
blakeyed

Re: Cinnamon CPU use

Post by blakeyed »

Googling and investigating I came across a possible workaround.

I edited: /etc/environment and inserted
CLUTTER_PAINT=disable-clipped-redraws:disable-culling
CLUTTER_VBLANK=True

The strace output remains the same but now it runs a little bit smoother.
Locked

Return to “Cinnamon”