LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Why is Ubuntu so slow at my PC? (https://www.linuxquestions.org/questions/linux-desktop-74/why-is-ubuntu-so-slow-at-my-pc-4175699705/)

iworkwithu 08-25-2021 10:21 PM

Why is Ubuntu so slow at my PC?
 
Hi i am new to Linux and i am surprized, that my PC is slower with ubuntu (ssd1) than with W10 (ssd2).

I also could change to another distribution.
Main main goal is to program Code. But anyway i want to run applications like photoshop, Unreal Engine and eclipse, or whatever.

W10 was like super nice - but ok I used another ssd.

Maybe my ssd is bad, where my linux is on?
Can someone tell me whats up?

At the moment I have only 8 GB RAM and a Ryzen 5600g.
But for example google chrome doesnt move so smooth and with my other ssd with w10 it was so good.
---

ondoho 08-25-2021 11:59 PM

Quote:

Originally Posted by iworkwithu (Post 6278676)
Hi i am new to Linux and i am surprized, that my PC is slower with ubuntu (ssd1) than with W10 (ssd2).

I also could change to another distribution.
Main main goal is to program Code. But anyway i want to run applications like photoshop, Unreal Engine and eclipse, or whatever.

W10 was like super nice - but ok I used another ssd.

Maybe my ssd is bad, where my linux is on?
Can someone tell me whats up?

At the moment I have only 8 GB RAM and a Ryzen 5600g.
But for example google chrome doesnt move so smooth and with my other ssd with w10 it was so good.
---

You don't tell us much - e.g.: how the "slowness" manifests itself. What apps you have open. How you installed Ubuntu, or what apps you installed, or tweaked.

Generally speaking, GPU driver problems (hardware accelaration) are common problems.

Also a sort of over-confidence in the magic abilities of Linux to make your hardware "fly". Vanilla Ubuntu is pretty bloated, you might want to try Xubuntu.

Have you un/checked hardware accelaration in Chrome's settings? Have you done any troubleshooting?

Last but not least: Google Chrome is not part of the Ubuntu repositories. It is also closed source. Have you considered using Chromium instead?

DavidMcCann 08-26-2021 10:52 AM

Id your RAM one stick or two? Apparently the graphics core is happier when it can use a different memory to the other cores:
https://forum.manjaro.org/t/ryzen-5-...formance/78102

The general opinion seems to be that the 5600G is a good processor:
https://www.novatech.co.uk/blog/amd-5600g-apus-in-2021/
It should certainly be up to running Ubuntu. I bought a new computer last year with an AMD A6 — the Ryzen processors seemed completely over the top for a non-gamer. Is it just Chrome that seems slow? If so, dump it.

jefro 08-26-2021 02:40 PM

I'd think it should be ok.

Are the SSD's the same?

I'm with the notion of some graphics issue. Could run the command line program "top" to see metrics or other system performance gui.

TB0ne 08-26-2021 03:34 PM

Quote:

Originally Posted by iworkwithu (Post 6278676)
Hi i am new to Linux and i am surprized, that my PC is slower with ubuntu (ssd1) than with W10 (ssd2).

I also could change to another distribution. Main main goal is to program Code. But anyway i want to run applications like photoshop, Unreal Engine and eclipse, or whatever. W10 was like super nice - but ok I used another ssd.

Maybe my ssd is bad, where my linux is on? Can someone tell me whats up? At the moment I have only 8 GB RAM and a Ryzen 5600g. But for example google chrome doesnt move so smooth and with my other ssd with w10 it was so good.---

Related to this?
https://www.linuxquestions.org/quest...sb-4175699607/

Are you running Ubuntu off of a USB stick?? And if you're wanting to use Windows applications like Photoshop...you need to stay with Windows. Beyond that, as others have said, it could be a myriad of issues. Personally, I'd suggest you use Mint instead of Ubuntu, but on a Ryzen with 8GB, even Ubuntu should be pretty good.

mrmazda 08-27-2021 09:31 PM

Please provide here the URL resulting from running this command in Ubuntu:
Code:

pastebinit /var/log/Xorg.0.log
If it produces only an error message, try again this way:
Code:

pastebinit ~/.local/share/xorg/Xorg.0.log

iworkwithu 08-31-2021 07:34 AM

----
quick update:
I dont no why, but now my ubuntu works as fast as W10. maybe sometimes slower but i think even sometimes faster
(ubuntu wasnt able to boot for a while - i used a usb boot stick and made some repairs- i was surprised that everything flows now how it should flow - at least from my perspective...)
----

Quote:

pastebinit ~/.local/share/xorg/Xorg.0.log
doesnt work
i will google it
update: here it is:
paste ubuntu

yes :D
---
at the moment i let a repais boot usb stick inside so my ubuntu boots xD it is not really stable
---
i have also a w10 ssd -- which I also want to put in later- because this pc is the best I have :) and some apps are easier to install on windows I think...
---


Quote:

I'd think it should be ok.
Are the SSD's the same?
ssd1 = W10 ssd2 = Ubuntu
but i unplugged for example now W10 - my focus was today on just running linux - this is also where i am writing now :D

ondoho 08-31-2021 11:35 AM

Quote:

Originally Posted by iworkwithu (Post 6280180)

"You need to be logged in to view this paste:" :(

Quote:

ssd1 = W10 ssd2 = Ubuntu
I think the question was whether the two SSDs are the same make and model, and connect in the same way (internally or USB or something else). Obviously, different devices and different connections result in different speeds.

mrmazda 08-31-2021 01:35 PM

Quote:

Originally Posted by iworkwithu (Post 6280180)
Quote:

Code:

pastebinit ~/.local/share/xorg/Xorg.0.log

...
paste ubuntu

Your log contains this:
Code:

(EE) open /dev/dri/card0: No such file or directory
This indicates a serious error. Absence of /dev/dri/card0 prevents loading of optimal X drivers. This is typically caused by absence of needed firmware, which in turn is often caused by using hardware that is too new for the selected distro to support. The fallback driver used as a result is very crude and slow. Please provide output from inxi -GSa or inxi -GSxxx and dpkg -l | egrep 'mwar'. I suspect this very new CPU requires firmware and/or kernel and possibly X server from backports repo.

iworkwithu 08-31-2021 01:40 PM

Quote:

I think the question was whether the two SSDs are the same make and model, and connect in the same way (internally or USB or something else). Obviously, different devices and different connections result in different speeds.
yeah different models both with [SATA]:
* sanDisk sdssda 2,5" ssd drive 480G 6G/s [UBUNTU] in my PC
* Kingston 120 SA400S37 SBFK71E0 120G [W10] just lies on my table today
--
I just checked the datasheets- the have the same read/ write speed... like 500 MB/s
--
actually, as I maybe told before, linux ubuntu is now a little bit faster than before two days - maybe I did some repairs with my repair-usb-stick...
the feeling is now like on W10 I think - sometimes faster/ slower
---


Quote:

"You need to be logged in to view this paste:"
yeah I created a account extra for this - its part of this command xD
---------

Quote:

his indicates a serious error. Absence of /dev/dri/card0 prevents loading of optimal X drivers.
best thing i have heard today :D


/home/oem# inxi -GSa
System:
Host: oem-MS-7B86 Kernel: 5.11.0-27-generic x86_64 bits: 64 compiler: N/A
parameters: BOOT_IMAGE=/boot/vmlinuz-5.11.0-27-generic
root=UUID=1b0b3de7-bd8a-4212-8c12-8f7a34528d63 ro quiet splash
vt.handoff=7
Desktop: Gnome 3.36.9 wm: gnome-shell dm: GDM3 3.36.3
Distro: Ubuntu 20.04.3 LTS (Focal Fossa)
Graphics:
Device-1: AMD driver: amdgpu v: kernel bus ID: 30:00.0 chip ID: 1002:1638
Display: server: X.Org 1.20.11 driver: ati,fbdev
unloaded: modesetting,radeon,vesa compositor: gnome-shell
resolution: 1024x768~60Hz
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-27-generic LLVM 12.0.0)
v: 4.6 Mesa 21.0.3 direct render: Yes

-----
/home/oem# inxi -GSa
System:
Host: oem-MS-7B86 Kernel: 5.11.0-27-generic x86_64 bits: 64 compiler: N/A
parameters: BOOT_IMAGE=/boot/vmlinuz-5.11.0-27-generic
root=UUID=1b0b3de7-bd8a-4212-8c12-8f7a34528d63 ro quiet splash
vt.handoff=7
Desktop: Gnome 3.36.9 wm: gnome-shell dm: GDM3 3.36.3
Distro: Ubuntu 20.04.3 LTS (Focal Fossa)
Graphics:
Device-1: AMD driver: amdgpu v: kernel bus ID: 30:00.0 chip ID: 1002:1638
Display: server: X.Org 1.20.11 driver: ati,fbdev
unloaded: modesetting,radeon,vesa compositor: gnome-shell
resolution: 1024x768~60Hz
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-27-generic LLVM 12.0.0)
v: 4.6 Mesa 21.0.3 direct render: Yes
root@oem-MS-7B86:/home/oem# inxi -GSxxx
System:
Host: oem-MS-7B86 Kernel: 5.11.0-27-generic x86_64 bits: 64 compiler: N/A
Desktop: Gnome 3.36.9 wm: gnome-shell dm: GDM3 3.36.3
Distro: Ubuntu 20.04.3 LTS (Focal Fossa)
Graphics:
Device-1: AMD driver: amdgpu v: kernel bus ID: 30:00.0 chip ID: 1002:1638
Display: server: X.Org 1.20.11 driver: ati,fbdev
unloaded: modesetting,radeon,vesa compositor: gnome-shell
resolution: 1024x768~60Hz
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-27-generic LLVM 12.0.0)
v: 4.6 Mesa 21.0.3 direct render: Yes
------
dpkg -l | egrep 'mwar'
ii amd64-microcode 3.20191218.1ubuntu1 amd64 Processor microcode firmware for AMD CPUs
ii fwupd 1.5.11-0ubuntu1~20.04.2 amd64 Firmware update daemon
ii fwupd-signed 1.27.1ubuntu5+1.5.11-0ubuntu1~20.04.2 amd64 Linux Firmware Updater EFI signed binary
ii intel-microcode 3.20210608.0ubuntu0.20.04.1 amd64 Processor microcode firmware for Intel CPUs
ii libfwupd2:amd64 1.5.11-0ubuntu1~20.04.2 amd64 Firmware update daemon library
ii libfwupdplugin1:amd64 1.5.11-0ubuntu1~20.04.2 amd64 Firmware update daemon plugin library
ii linux-firmware 1.187.16 all Firmware for Linux kernel drivers
ii xserver-xorg-video-vmware 1:13.3.0-3 amd64 X.Org X server -- VMware display driver
----

Quote:

I suspect this very new CPU requires firmware and/or kernel and possibly X server from backports repo.
hmm interesting.
this would be nice because it is already faster than my old laptop - then it would be much more faster than my old laptop after driver setup :)

mrmazda 08-31-2021 10:35 PM

Quote:

Originally Posted by iworkwithu (Post 6280305)
Code:

...
  Display: server: X.Org 1.20.11 driver: ati,fbdev
  unloaded: modesetting,radeon,vesa


What this should look like, if using a current or recent inxi version, and new enough drivers and firmware for your 5600G, is approximately the following:
Code:

...
  Display: server: X.Org 1.20.11 driver: loaded: amdgpu  alternate: ati,fbdev
  unloaded: modesetting,radeon,vesa

Conspicuously absent is any loaded display driver. However, the desirable display drivers, amdgpu and modesetting, can't load because of the absent /dev/dri/card0 that a new enough kernel amdgpu driver, and new enough firmware, must provide.

Please run sudo inxi -U before using inxi for posting here again. The -U switch updates to the current upstream inxi version. The inxi version provided by 20.04 is quite old, and broken in several ways.

iworkwithu 09-01-2021 01:42 AM

Quote:

Originally Posted by mrmazda (Post 6280426)
run sudo inxi -U before using inxi for posting here again.

Code:

/home/oem# inxi -U
Error 20: Option: U has been disabled by the inxi distribution maintainer.

inixi shows:
i think it looks ok on the first view
Quote:

/home/oem# inxi
CPU: 6-Core AMD Ryzen 5 5600G with Radeon Graphics (-MT MCP-)
speed: 2991 MHz Kernel: 5.11.0-27-generic x86_64 Up: 9m
Mem: 2453.1/7403.1 MiB (33.1%) Storage: 776.05 GiB (23.4% used) Procs: 348
Shell: bash 5.0.17 inxi: 3.0.38

mrmazda 09-01-2021 01:53 AM

Quote:

Originally Posted by iworkwithu (Post 6280450)
Code:

/home/oem# inxi -U
Error 20: Option: U has been disabled by the inxi distribution maintainer.


It's rude of a maintainer to do that and not keep the package up to date on the mirrors. Inxi typically goes out of date between the time a distro's version freeze occurs and the actual release of the distro, not to mention getting still more ancient as a distro ages.

Save the following as /etc/inxi.conf and the -U switch will override the rudeness:
Code:

B_ALLOW_UPDATE=true

iworkwithu 09-01-2021 03:29 AM

(btw. just changed my screen connection from vga to hdmi)
inxi -U
Starting inxi self updater.
Using tiny as downloader.
Currently running inxi version number: 3.0.38
Current version patch number: 00
Current version release date: 2020-03-14
Updating inxi in /usr/bin using main branch as download source...
Successfully updated to main branch version: 3.3.06
New main branch version patch number: 00
New main branch version release date: 2021-07-21
To run the new version, just start inxi again.
----------------------------------------

Starting download of man page file now.
Downloading Man page file...
Download successful. Compressing file...
Download and install of man page successful.
Check to make sure it works: man inxi
-----
inxi
CPU: 6-Core AMD Ryzen 5 5600G with Radeon Graphics (-MT MCP-)
speed: 3893 MHz Kernel: 5.11.0-27-generic x86_64 Up: 1h 54m
Mem: 4980.1/7403.1 MiB (67.3%) Storage: 776.05 GiB (23.4% used) Procs: 368
Shell: Bash inxi: 3.3.06

------


inxi -GSa
System:
Host: oem-MS-7B86 Kernel: 5.11.0-27-generic x86_64 bits: 64 compiler: gcc
v: 9.3.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.11.0-27-generic
root=UUID=1b0b3de7-bd8a-4212-8c12-8f7a34528d63 ro quiet splash
vt.handoff=7
Desktop: GNOME 3.36.9 tk: GTK 3.24.20 wm: gnome-shell dm: GDM3 3.36.3
Distro: Ubuntu 20.04.3 LTS (Focal Fossa)
Graphics:
Device-1: AMD driver: amdgpu v: kernel bus-ID: 30:00.0 chip-ID: 1002:1638
class-ID: 0300
Display: server: X.Org 1.20.11 compositor: gnome-shell driver:
loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa display-ID: :0
screens: 1
Screen-1: 0 s-res: 1024x768 s-dpi: 96 s-size: 270x203mm (10.6x8.0")
s-diag: 338mm (13.3")
Monitor-1: HDMI-A-0 res: 1024x768 hz: 60 dpi: 102
size: 256x192mm (10.1x7.6") diag: 320mm (12.6")
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-27-generic LLVM 12.0.0)
v: 4.6 Mesa 21.0.3 direct render: Yes


-------

inxi -GSxxx
System:
Host: oem-MS-7B86 Kernel: 5.11.0-27-generic x86_64 bits: 64 compiler: gcc
v: 9.3.0 Desktop: GNOME 3.36.9 tk: GTK 3.24.20 wm: gnome-shell
dm: GDM3 3.36.3 Distro: Ubuntu 20.04.3 LTS (Focal Fossa)
Graphics:
Device-1: AMD driver: amdgpu v: kernel bus-ID: 30:00.0 chip-ID: 1002:1638
class-ID: 0300
Display: server: X.Org 1.20.11 compositor: gnome-shell driver:
loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa
resolution: 1024x768~60Hz s-dpi: 96
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-27-generic LLVM 12.0.0)
v: 4.6 Mesa 21.0.3 direct render: Yes

mrmazda 09-02-2021 02:13 AM

Quote:

Originally Posted by iworkwithu (Post 6280478)
Code:

inxi -GSa
...
Graphics:
  Device-1: AMD driver: amdgpu v: kernel bus-ID: 30:00.0 chip-ID: 1002:1638
  class-ID: 0300
  Display: server: X.Org 1.20.11 compositor: gnome-shell driver:
  loaded: amdgpu
,ati unloaded: fbdev,modesetting,vesa display-ID: :0
  screens: 1
  Screen-1: 0 s-res: 1024x768 s-dpi: 96 s-size: 270x203mm (10.6x8.0")
  s-diag: 338mm (13.3")
  Monitor-1: HDMI-A-0 res: 1024x768 hz: 60 dpi: 102
  size: 256x192mm (10.1x7.6") diag: 320mm (12.6")
  OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-27-generic LLVM 12.0.0)
  v: 4.6 Mesa 21.0.3 direct render: Yes


Looks OK. Since you say in #7 fast or faster than Win10, this looks like a thread that can be marked closed, but it is rather surprising to see you say you've switched to an HDMI connection while inxi shows you've used a screen resolution of only 1024x768.


All times are GMT -5. The time now is 09:13 PM.