Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startdde needs more than 25% cpu #8

Closed
LinuxUserGD opened this issue Mar 18, 2018 · 40 comments
Closed

startdde needs more than 25% cpu #8

LinuxUserGD opened this issue Mar 18, 2018 · 40 comments
Assignees

Comments

@LinuxUserGD
Copy link

LinuxUserGD commented Mar 18, 2018

I'm running Antergos Linux 15.5 Desktop 64 Bit with Deepin.
While I don't have any other programs open, the deepin system monitor shows ~30% cpu usage (25% from startdde). I've tried to kill the process which ends in a black screen.
Is there any workaround to reduce the cpu usage?

@ghost
Copy link

ghost commented Mar 27, 2018

Same problem : 12,5% with core i7

@LinuxUserGD
Copy link
Author

LinuxUserGD commented Mar 27, 2018

Core i5 with Intel Graphics 620 (OpenGL ES 3.0 mesa drivers). Would I get a message from the system if it uses software rendering? I changed the distro to Budgie and now the CPU is at 2% in the deepin system monitor while I'm still running other deepin apps like the file manager / terminal. Does 25% and 12,5% mean that it runs 100% in one thread / on one core?

@ghost
Copy link

ghost commented Mar 28, 2018

Same problem, 100% usage on core i7 7500u

@OmarEmaraDev
Copy link

The same happening with my Ryzen 7 1700. Startdde is taking up 6.2% which is exactly one thread from the 16 threads I have. There is another report with the same issue here.

@jouyouyun
Copy link
Contributor

@electricface

@ekhaled667
Copy link

ekhaled667 commented Apr 3, 2018

@electricface @jouyouyun

Here is perf data and startdde journal.

@maxcruz
Copy link

maxcruz commented Apr 4, 2018

After starting the session on Arch Linux startdde consumes the 100% of the CPU

@DasJott
Copy link

DasJott commented Apr 5, 2018

Arch here too. Core i7 7th Gen.
startdde sometimes takes up to 100% CPU

image

@jouyouyun
Copy link
Contributor

jouyouyun commented Apr 5, 2018

@ekhaled667 download the file, then copy to /usr/bin/startdde and exec chmod +x /usr/bin/startdde, then reboot.
If the bug ocurred again, please update perf.data and dde.log, thanks!

@ekhaled667
Copy link

ekhaled667 commented Apr 5, 2018

@jouyouyun
The problem persists.
Here is the new log.

@epoiate
Copy link

epoiate commented Apr 5, 2018

Here
Actually, it's wrose now. My dock won't load, reverted the file and it still won't load... how can i fix this?

EDIT: Fixed, it was a problem with how i was extracting my backup file. Sorry.

@DasJott
Copy link

DasJott commented Apr 5, 2018

I also experience that sometimes. Dock sometimes takes minutes to appear on screen. With normal version.

@epoiate
Copy link

epoiate commented Apr 5, 2018

Yeah, I fixed it already. It's normal for it to take a few seconds (I'm using a SSD), but in my case it wasn't loading at all. A lot of things wasn't working too.

@DasJott
Copy link

DasJott commented Apr 5, 2018

Using SSD here too. Precisely it is a Dell XPS13 here. And it still sometimes takes minutes.
Also while runtime dde-session-daemon jumps up to 400% which drains battery big time. I don't know, if that is related...

@jouyouyun
Copy link
Contributor

@ekhaled667 always keep a high cpu usage?

@ekhaled667
Copy link

@jouyouyun Yes, Always.

@snyh
Copy link
Member

snyh commented Apr 8, 2018

@ekhaled667

Run this command strace -t -f -p $(pgrep startdde) 2>dde_strace.log when startdde's CPU usage is abnormal. Run it about 5 seconds is enough.

All of perf.data above hasn't too many information to show the problem.

@epoiate
Copy link

epoiate commented Apr 8, 2018

@snyh
Here is my results
dde_strace.log

PS: startdde is ALWAYS using a full core of my 6600K
full core

@snyh
Copy link
Member

snyh commented Apr 8, 2018

@epoiate The strace's (syscall) log hasn't any problem.

Please wait a moment, @jouyouyun will build and upload a startdde with golang perf enable.

@electricface
Copy link
Member

@epoiate
Copy link

epoiate commented Apr 12, 2018

@electricface can you elaborate the exact steps that I should take?

@OmarEmaraDev
Copy link

@electricface @jouyouyun Is there an update on this? The problem is still there and such CPU usage getting tedious.

@Alpkant
Copy link

Alpkant commented May 8, 2018

This problem is happening to me as well and if i kill the startdde from htop, it restarts the environment and i log again and cpu usage returns to normal values. However lot of time it uses 100% of the one of my cores until i kill the startdde.

@jouyouyun
Copy link
Contributor

Try to edit /etc/default/grub to add parameter vsyscall=emulate, then exec grub-mkconfig -o /boot/grub/grub.cfg to update, then reboot.

@Alpkant
Copy link

Alpkant commented May 13, 2018

@jouyouyun I didn't see any high usage after editing grub file. Thank you.

@ekhaled667
Copy link

@jouyouyun It didn't work for me.

By the way, I'm on Arch Linux not Deepin OS.

And I don't use GRUB, I use systemd-boot.

@OmarEmaraDev
Copy link

OmarEmaraDev commented May 14, 2018

@jouyouyun Same here, that doesn't work. Arch Linux and don't use GRUB.

@DasJott
Copy link

DasJott commented May 14, 2018

Arch with grub here and it mostly works, but not always.
Mostly it is on new startup, where it runs 100% of one cpu. After logout and re login it runs normal.

@jouyouyun
Copy link
Contributor

jouyouyun commented May 15, 2018

😓
How repetition this bug?

@ekhaled667
Copy link

For me, It's always utilizing one thread.
Even if I log out and then log in again, in 5 seconds it starts using 100% of one thread.
Even if I kill the process.
Even if I reboot.
Not once did it not utilize the thread.

@msusenburger
Copy link

Had this issue the last month at least. Changed today from launching via startx to launching via lightdm and issues seems resolved for me.

@OmarEmaraDev
Copy link

It is always happening for me as well. Always utilizing one thread. Tried rebooting, killing and restarting and nothing worked.

@jouyouyun
Copy link
Contributor

Have you install gnome-keyring?

@jouyouyun
Copy link
Contributor

jouyouyun commented May 21, 2018

Try this startdde, downloaded and chmod +x, then copy to /usr/bin/startdde.

Note: you should update your system firstly, startdde version should be 3.1.29-1 after updated.

@LinuxUserGD
Copy link
Author

I've updated to 3.1.29-1 on Arch Linux without the patch and it works for me 👍
The deepin system monitor shows around 3% cpu usage.

@msusenburger
Copy link

Version 3.1.29-1 is also working in my case, even after launching with startx.
gnome-keyring is installed in version 1:3.28.2-1.

Thanks for fixing 👍

@OmarEmaraDev
Copy link

Just tried the previously mentioned startdde file. It seems to be working fine now. Thanks !

@ekhaled667
Copy link

ekhaled667 commented May 23, 2018

Try this startdde, downloaded and chmod +x, then copy to /usr/bin/startdde.
Note: you should update your system firstly, startdde version should be 3.1.29-1 after updated.

This worked for me too, thanks for your time.

@jouyouyun
Copy link
Contributor

Fixed in startdde 3.1.30, please update!

@Stakdek
Copy link

Stakdek commented Oct 22, 2019

Running on Ubuntu 18.04 I can't update startdde to 3.1.30. It stops at 3.1.28-1. I have the same high CPU issue. @jouyouyun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests