Setup & Software Discussions
XPS 13 9360 is sluggish under Linux
 

XPS 13 9360 is sluggish under Linux  

  RSS

(@lance_gundersen)
New Member
Joined: 1 year ago
 

My Rig
XPS 13 9360
Razer Core X
NVIDIA GTX 1080
Stock Ubuntu 18.04
NVIDIA Driver: nvidia-driver-390
Internal Display: Off
External Connected to Core X: Display Port 2560x1080 (34") & HDMI 2560x1080 (29") 
Tweaks: Animations OFF
Dual Booted with Windows 10

Stats at doing light development:
CPU1-4 20-100% as I am compiling, etc.
RAM holding steady at 6.6GB of 15.3GB (43%)

On the windows side it works flawlessly and I have been able to do my graphics editing, gaming, etc. On the Linux side its borderline unusable due to the sluggishness and I am doing development but it't nothing to serious.

In this test 10 Chrome tabs, VS Code with a single ng serve running, Mattermost electron app and a terminal window.

NOTE: I did notice that systemd-udevd is pegging the cpu at 25% constantly. So upon a quick google search I found to run this cmd: udevadm monitor at stack exchange. Upon runnig it I got the output at the end of the post.
I did try executing the sudo systemctl restart systemd-udevd command but it didn't do anything to change the usage.

Thoughts?

$ udevadm monitor output snippet
KERNEL[4380.729816] remove /kernel/slab/:0012288 (slab)
UDEV [4380.751984] add /kernel/slab/:0012288 (slab)
KERNEL[4380.752232] remove /module/nvidia (module)
UDEV [4380.770539] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4380.816024] add /module/nvidia (module)
KERNEL[4380.817326] add /kernel/slab/:0012288 (slab)
KERNEL[4380.817853] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4380.817897] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4380.818020] remove /kernel/slab/:0012288 (slab)
UDEV [4380.818686] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4380.832227] remove /module/nvidia (module)
UDEV [4380.836662] remove /kernel/slab/:0012288 (slab)
KERNEL[4380.884381] add /module/nvidia (module)
KERNEL[4380.885588] add /kernel/slab/:0012288 (slab)
KERNEL[4380.886080] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4380.886203] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4380.886264] remove /kernel/slab/:0012288 (slab)
UDEV [4380.898990] add /kernel/slab/:0012288 (slab)
KERNEL[4380.900193] remove /module/nvidia (module)
UDEV [4380.922076] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4380.945652] add /module/nvidia (module)
KERNEL[4380.946822] add /kernel/slab/:0012288 (slab)
KERNEL[4380.947249] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4380.947286] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4380.947412] remove /kernel/slab/:0012288 (slab)
UDEV [4380.960824] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4380.968311] remove /module/nvidia (module)
UDEV [4380.983306] remove /kernel/slab/:0012288 (slab)
UDEV [4380.991333] add /module/nvidia (module)
UDEV [4381.022141] remove /module/nvidia (module)
KERNEL[4381.042764] add /kernel/slab/:A-0000256/cgroup/filp(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043205] add /kernel/slab/:aA-0000192/cgroup/dentry(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043231] add /kernel/slab/inode_cache/cgroup/inode_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043256] add /kernel/slab/:A-0000192/cgroup/cred_jar(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043284] add /kernel/slab/:A-0002112/cgroup/mm_struct(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043303] add /kernel/slab/:A-0000208/cgroup/vm_area_struct(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043322] add /kernel/slab/:A-0000064/cgroup/pid(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043343] add /kernel/slab/anon_vma/cgroup/anon_vma(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043368] add /kernel/slab/sock_inode_cache/cgroup/sock_inode_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043484] add /kernel/slab/:A-0005952/cgroup/task_struct(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043506] add /kernel/slab/:A-0000704/cgroup/files_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043523] add /kernel/slab/sighand_cache/cgroup/sighand_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043544] add /kernel/slab/:A-0001024/cgroup/signal_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043654] add /kernel/slab/:0000256/cgroup/kmalloc-256(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043726] add /kernel/slab/:0000512/cgroup/kmalloc-512(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.043794] add /kernel/slab/shmem_inode_cache/cgroup/shmem_inode_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.046574] add /kernel/slab/proc_inode_cache/cgroup/proc_inode_cache(38296:nvidia-persistenced.service) (cgroup)
UDEV [4381.068357] add /kernel/slab/:0012288 (slab)
KERNEL[4381.073576] add /module/nvidia (module)
KERNEL[4381.074549] add /kernel/slab/:0012288 (slab)
KERNEL[4381.075012] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.075053] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.075165] remove /kernel/slab/:0012288 (slab)
UDEV [4381.091160] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.093020] remove /module/nvidia (module)
KERNEL[4381.125904] add /module/nvidia (module)
KERNEL[4381.127075] add /kernel/slab/:0012288 (slab)
KERNEL[4381.127555] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.127582] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.127685] remove /kernel/slab/:0012288 (slab)
UDEV [4381.133367] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.152286] remove /module/nvidia (module)
UDEV [4381.156997] remove /kernel/slab/:0012288 (slab)
KERNEL[4381.180113] add /kernel/slab/:0001024/cgroup/kmalloc-1024(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.193382] add /module/nvidia (module)
KERNEL[4381.194361] add /kernel/slab/:0012288 (slab)
KERNEL[4381.194971] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.195021] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.195164] remove /kernel/slab/:0012288 (slab)
KERNEL[4381.213943] remove /module/nvidia (module)
KERNEL[4381.220859] remove /kernel/slab/sock_inode_cache/cgroup/sock_inode_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.220891] remove /kernel/slab/shmem_inode_cache/cgroup/shmem_inode_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.220907] remove /kernel/slab/proc_inode_cache/cgroup/proc_inode_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.220920] remove /kernel/slab/:A-0000256/cgroup/filp(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.220933] remove /kernel/slab/inode_cache/cgroup/inode_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.220946] remove /kernel/slab/:aA-0000192/cgroup/dentry(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.220959] remove /kernel/slab/:A-0000208/cgroup/vm_area_struct(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.220972] remove /kernel/slab/:A-0002112/cgroup/mm_struct(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.220984] remove /kernel/slab/:A-0000704/cgroup/files_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.220997] remove /kernel/slab/:A-0001024/cgroup/signal_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.221010] remove /kernel/slab/sighand_cache/cgroup/sighand_cache(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.221022] remove /kernel/slab/:A-0005952/cgroup/task_struct(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.221035] remove /kernel/slab/:A-0000192/cgroup/cred_jar(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.221048] remove /kernel/slab/anon_vma/cgroup/anon_vma(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.221060] remove /kernel/slab/:A-0000064/cgroup/pid(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.221072] remove /kernel/slab/:0001024/cgroup/kmalloc-1024(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.221085] remove /kernel/slab/:0000512/cgroup/kmalloc-512(38296:nvidia-persistenced.service) (cgroup)
KERNEL[4381.221099] remove /kernel/slab/:0000256/cgroup/kmalloc-256(38296:nvidia-persistenced.service) (cgroup)
UDEV [4381.221694] add /kernel/slab/:0012288 (slab)
UDEV [4381.252371] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.257168] add /module/nvidia (module)
KERNEL[4381.258371] add /kernel/slab/:0012288 (slab)
KERNEL[4381.258905] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.258969] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.259103] remove /kernel/slab/:0012288 (slab)
KERNEL[4381.276534] remove /module/nvidia (module)
UDEV [4381.289791] remove /bus/pci/drivers/nvidia (drivers)
UDEV [4381.313629] remove /kernel/slab/:0012288 (slab)
KERNEL[4381.335009] add /module/nvidia (module)
KERNEL[4381.336034] add /kernel/slab/:0012288 (slab)
KERNEL[4381.336476] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.336509] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.336626] remove /kernel/slab/:0012288 (slab)
KERNEL[4381.360238] remove /module/nvidia (module)
UDEV [4381.379978] add /kernel/slab/:0012288 (slab)
UDEV [4381.401924] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.409148] add /module/nvidia (module)
KERNEL[4381.412946] add /kernel/slab/:0012288 (slab)
KERNEL[4381.413864] add /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.414152] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[4381.414419] remove /kernel/slab/:0012288 (slab)
KERNEL[4381.432247] remove /module/nvidia (module)
UDEV [4381.443236] remove /bus/pci/drivers/nvidia (drivers)

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
groot
(@groot)
New Member
Joined: 8 months ago
 

I have the same issue with my Linux X1c6. I was able to solve it by

```
sudo prime-select intel # not sure if it is necessary
sudo systemctl stop systemd-udevd systemd-udevd-kernel.socket systemd-udevd-control.socket
sudo systemctl start systemd-udevd systemd-udevd-kernel.socket systemd-udevd-control.socket
```
remember to run the following before you plug to your egpu. Hope this is helpful
```
sudo prime-select nvidia
```

reference https://askubuntu.com/questions/1028883/ubuntu-18-04-systemd-udevd-uses-high-cpu-conflict-with-wifi/1074838#1074838

This post was modified 6 months ago

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


itsage liked
ReplyQuote