LM 19.3 xfce taking up about 70-90% of my CPU

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
DamnedDog
Level 1
Level 1
Posts: 16
Joined: Thu Mar 26, 2020 2:26 pm

LM 19.3 xfce taking up about 70-90% of my CPU

Post by DamnedDog »

I wasn't too sure if this was an issue with my laptop or an issue with xfce. I wanted to post here to make sure. Here are my results after putting inxi -Fxz in the terminal

Code: Select all

System:
  Host: damneddog-pc Kernel: 5.3.0-42-generic x86_64 bits: 64 compiler: gcc 
  v: 7.4.0 Desktop: Xfce 4.14.1 Distro: Linux Mint 19.3 Tricia 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: HP product: HP Laptop 15-bs0xx 
  v: Type1ProductConfigId serial: <filter> 
  Mobo: HP model: 8328 v: 23.27 serial: <filter> UEFI: Insyde v: F.10 
  date: 05/10/2017 
Battery:
  ID-1: BAT1 charge: 35.2 Wh condition: 38.2/41.4 Wh (92%) 
  model: Hewlett-Packard PABAS0241231 status: Discharging 
CPU:
  Topology: Dual Core model: Intel Core i3-6006U bits: 64 type: MT MCP 
  arch: Skylake rev: 3 L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 15999 
  Speed: 2000 MHz min/max: 400/2000 MHz Core speeds (MHz): 1: 2000 2: 2000 
  3: 2000 4: 2000 
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Hewlett-Packard 
  driver: i915 v: kernel bus ID: 00:02.0 
  Display: x11 server: X.Org 1.20.5 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) 
  v: 4.5 Mesa 19.2.8 direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
  Sound Server: ALSA v: k5.3.0-42-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000 bus ID: 01:00.0 
  IF: eno1 state: down mac: <filter> 
  Device-2: Realtek RTL8723BE PCIe Wireless Network Adapter 
  vendor: Hewlett-Packard driver: rtl8723be v: kernel port: 3000 
  bus ID: 02:00.0 
  IF: wlo1 state: up mac: <filter> 

User avatar
karlchen
Level 20
Level 20
Posts: 12315
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by karlchen »

Hello, damneddog.

Could you be persuaded to post the complete output, which inxi -Fxz displays, not just the upper 2/3 part only? Thank you.
The sections "Drives", "Partitions", "Sensors" and "Info" are absent in your post.

Best regards,
Karl
Image
Linux Mint 19.2 64-bit Cinnamon, Total Commander 9.22a 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

DamnedDog
Level 1
Level 1
Posts: 16
Joined: Thu Mar 26, 2020 2:26 pm

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by DamnedDog »

I’ve ran into another issue which may force me to re install Linux before I can give you another answer. I had to force shutdown Linux due to it not being able to get past the dimly lit black screen (likely due to the excess CPU usage). Now it seems to be a lingering issue that won’t go away. Extremely sorry for the delay

User avatar
karlchen
Level 20
Level 20
Posts: 12315
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by karlchen »

Hello, damnedog.

Sorry to learn that your system seems to be in serious trouble.
As the inxi report, which you had posted, does not reveal any obvious hardware or driver problem, I would like to ask this, if I may:
Had you taken the time to verify the integrity of the LM 19.3 xfce ISO image, before using it to install LM 19.3 xfce on your machine? (Ref.: How to verify ISO images)
I ask because a damaged ISO image file might cause all sorts of trouble, in case it is used to set up Linux Mint on a machine.

Best regards,
Karl
Image
Linux Mint 19.2 64-bit Cinnamon, Total Commander 9.22a 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

User avatar
pbear
Level 12
Level 12
Posts: 4047
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by pbear »

Ddog, are you getting the initramfs prompt? If so, type exit, then fsck -fy /dev/sda2. That's a shot in the dark as regards which is your system partition, but about 80% likely to be right, so let's go with it. That should enable you to boot, which in turn should make it possible to run inxi again and check the ISO as karlchen suggests.

If it doesn't work (or you're not getting the prompt), run inxi in a live session and report it from there.
Time flies like an arrow. Fruit flies like a banana.
If your problem has been solved, please edit the thread title.

User avatar
spamegg
Level 2
Level 2
Posts: 79
Joined: Mon Oct 28, 2019 2:34 am

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by spamegg »

Code: Select all

Display: x11 server: X.Org 1.20.5 driver: modesetting
It might be a display driver issue. modesetting is supposed to be a fallback driver, it doesn't have hardware acceleration. It uses software and probably uses up too much CPU.
modesetting is an Xorg driver for KMS devices. This is a non-accelerated driver...
https://linux.die.net/man/4/modesetting

But I don't know what is the correct accelerated driver for your GPU.

User avatar
ricardogroetaers
Level 4
Level 4
Posts: 287
Joined: Sat Oct 27, 2018 3:06 am
Location: Rio de Janeiro, Brasil

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by ricardogroetaers »

In addition to checking the "iso", I suggest using Xfce's "Task Manager" or the command below to try to see the villain who consumes cpu.
inxi -t c20

DamnedDog
Level 1
Level 1
Posts: 16
Joined: Thu Mar 26, 2020 2:26 pm

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by DamnedDog »

Hello everyone. Sorry for the delay.

I've decided to try out a few different mirrors and I seem to constantly run into the issue that I'm getting a bad signature from root@linuxmint.com no matter what ISO and it feels like it doesn't matter what kind of ISO I download.

To reply to spamegg I don't believe my laptop has a GPU due to it's main purpose being work and/or schoolwork. I may be uninformed though so I managed to find the possible specs for my laptop model

Microprocessor
Intel® Core™ i3-6006U (2 GHz, 3 MB cache, 2 cores)

Memory, standard
4 GB DDR4-2133 SDRAM (1 x 4 GB)

Video graphics
Intel® HD Graphics 520
Integrated

Maybe Linux mint might not be the right OS for me due to the poor specs. If so does anybody have a good recommendation?

User avatar
pbear
Level 12
Level 12
Posts: 4047
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by pbear »

I run Mint fine on a similar machine. Slower than a more recent machine, no surprise, but it's fine.

If you're having trouble with the downloads, another option is to purchase a pre-burned USB flash drive.
Time flies like an arrow. Fruit flies like a banana.
If your problem has been solved, please edit the thread title.

DamnedDog
Level 1
Level 1
Posts: 16
Joined: Thu Mar 26, 2020 2:26 pm

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by DamnedDog »

It takes up a lot of CPU space while downloading which constantly causes freezing even in compatability mode. Is it possible to try and fix the CPU issue during in the test run OS?

User avatar
karlchen
Level 20
Level 20
Posts: 12315
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by karlchen »

Hi, DamnedDog.
Maybe Linux mint might not be the right OS for me due to the poor specs. If so does anybody have a good recommendation?
Microprocessor
Intel® Core™ i3-6006U (2 GHz, 3 MB cache, 2 cores)
Memory, standard
4 GB DDR4-2133 SDRAM (1 x 4 GB)
Video graphics
Intel® HD Graphics 520
Integrated
No, those speecs are completely sufficient to run LM 19.3 xfce at normal speed, without constant CPU spikes of 70% to 90%.
I am sitting in front of a comparable notebook, no constant CPU spikes.

Code: Select all

$ inxi -mCG
CPU:       Topology: Dual Core model: Intel Core i3 M 330 bits: 64 type: MT MCP L2 cache: 3072 KiB 
           Speed: 1004 MHz min/max: 933/2133 MHz Core speeds (MHz): 1: 1262 2: 1395 3: 1242 4: 1154 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470] driver: radeon v: kernel 
           Display: x11 server: X.Org 1.19.6 driver: ati,radeon unloaded: fbdev,modesetting,vesa resolution: 1600x900~60Hz 
           OpenGL: renderer: AMD CEDAR (DRM 2.50.0 / 4.15.0-91-generic LLVM 9.0.0) v: 3.3 Mesa 19.2.8
Memory:    RAM: total: 3.72 GiB used: 1.24 GiB (33.3%) 
           RAM Report: permissions: Unable to run dmidecode. Root privileges required.  
Karl
Image
Linux Mint 19.2 64-bit Cinnamon, Total Commander 9.22a 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

User avatar
karlchen
Level 20
Level 20
Posts: 12315
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by karlchen »

Hello, DamnedDog.
DamnedDog wrote:
Fri Mar 27, 2020 1:47 pm
It takes up a lot of CPU space while downloading which constantly causes freezing even in compatability mode.
I do not undertstand this sentence. Downloading a whole LM ISO image of 2 GB does not cause any stress on the CPU. It is not even likely to cause stress on the harddisk to write the downloaded ISO image file.
How is downloading related to compatibility mode? And which device do you switch to compatibility mode?
Finally, what is "CPU space"?

Perhaps it would really help to do as suggested by ricardogroetaers,
ricardogroetaers wrote:
Fri Mar 27, 2020 3:29 am
I suggest using Xfce's "Task Manager" or the command below to try to see the villain who consumes cpu. inxi -t c20
Checking the process list and determining the processes which cause most of the CPU load might really help coming closer to the root cause.

Karl
Image
Linux Mint 19.2 64-bit Cinnamon, Total Commander 9.22a 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

DamnedDog
Level 1
Level 1
Posts: 16
Joined: Thu Mar 26, 2020 2:26 pm

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by DamnedDog »

Ah, well that calms my fears of it being too much. My brother is blaming the HDD but I'm doubting his claims at the moment. Since I have freezed mid reinstallation I have to download the entire OS again and I seem to constantly run into the issue of it freezing. I've tried compatability mode and it sort of helps, but the farthest I've gotten was when it was copying the final files before it froze. Do you have any advice?

EDIT: I'll try the command right now

DamnedDog
Level 1
Level 1
Posts: 16
Joined: Thu Mar 26, 2020 2:26 pm

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by DamnedDog »

karlchen wrote:
Fri Mar 27, 2020 3:52 pm
Checking the process list and determining the processes which cause most of the CPU load might really help coming closer to the root cause.
I've run the command and here is the top 10 on compatibility mode when you're prompted to install linux mint

Code: Select all

1 cpu 87.6% command: systemd-journald pid 1072
cpu 43.9 command: [irq/17-aerdrv] pid 151
cpu 37.8 command: rsyslogd pid 1156
cpu 19.5 command: init pid 1
The rest taking up cpu space is below 10%

EDIT: I checked again and here are the new results

Code: Select all

cpu 141% rsyslogd
cpu 98.3 rsystemd-journald
cpu 76.4 [irq/17-aerdrv]

User avatar
karlchen
Level 20
Level 20
Posts: 12315
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by karlchen »

Hello, DamnedDog.

My spontaneous reaction would be: "Oops, this looks like a serious system problem." Reason: Processes systemd-journald and rsyslogd both write system messages to the journal and to the file /var/log/syslog. This is normal. But if they are so busy doing this that they consume most of the CPU time, then they must be logging a problem once per second or in even shorter intervals. And this usually means serious trouble.

You can watch almost in realtime whether systemd-journald and rsyslogd stay on top of the process list, ordered by CPU load descending, using the terminal command top.
In case the 2 processes stay on top for half a minute or longer, then they are constantly logging a quickly recurring problem.

Karl
--
P.S.: Below is how a top list might look on a machine which does not exhibit any problems and where Firefox is the active application now.

Code: Select all

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                         
 5767 karl      20   0 2814768 230384 137864 S   4.6  5.9   9:26.87 Web Content                                                     
 2107 karl      20   0  898464  34788  27196 S   2.0  0.9   2:43.86 netactview                                                      
 3537 karl      20   0 3896128 419300 162440 S   1.7 10.7   7:22.77 firefox                                                         
 1184 root      20   0  570852  97520  73168 S   0.7  2.5   9:05.49 Xorg                                                            
 1768 karl      20   0  340336  24816  19056 S   0.7  0.6   0:16.17 panel-14-dateti                                                 
  824 message+  20   0   51308   5492   3960 S   0.3  0.1   0:03.27 dbus-daemon                                                     
  866 root      20   0  503476  11924   8776 S   0.3  0.3   0:10.57 udisksd                                                         
 1765 karl      20   0  464748  30236  24116 S   0.3  0.8   0:00.63 panel-10-xapp-s                                                 
 1809 karl      20   0  387164  49400  28692 S   0.3  1.3   1:38.38 compton                                                         
 1867 karl      20   0  658924  33908  26204 S   0.3  0.9   0:02.89 nm-applet                                                       
 1957 karl      20   0  579156  40716  29408 S   0.3  1.0   0:04.65 xfce4-terminal                                                  
 6297 root      20   0       0      0      0 I   0.3  0.0   0:00.30 kworker/3:1                                                     
 6346 karl      20   0   41164   3640   3004 R   0.3  0.1   0:00.19 top                                                             
    1 root      20   0  225352   9108   6676 S   0.0  0.2   0:02.61 systemd                                                         
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.01 kthreadd                                                        
    6 root       0 -20       0      0      0 I   0.0  0.0   0:00.00 mm_percpu_wq                                                    
    7 root      20   0       0      0      0 S   0.0  0.0   0:00.19 ksoftirqd/0                                                     
    8 root      20   0       0      0      0 I   0.0  0.0   0:05.19 rcu_sched                                                       
    9 root      20   0       0      0      0 I   0.0  0.0   0:00.00 rcu_bh     
Image
Linux Mint 19.2 64-bit Cinnamon, Total Commander 9.22a 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

DamnedDog
Level 1
Level 1
Posts: 16
Joined: Thu Mar 26, 2020 2:26 pm

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by DamnedDog »

I've let it run for a minute or so and it seems that systemd-jo+, irq/17-aer+ and syslog seem to consistent in being up top with it soon switching with syslog constantly being the number 1 CPU eater. If it is a broken ISO I have no idea where to find a good ISO.

User avatar
karlchen
Level 20
Level 20
Posts: 12315
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by karlchen »

OK.
The command journalctl -b -r will display what systemd-journald is logging. The option -b -r will tell the command journalctl to display the currently used journal in reverse order, i.e. starting from the end. Result of the commandline: display the most recently logged messages, from youngest to older messages.
If you could post one screenful of those messages, my expectation is that the same message(s) will repeat over and over again.
Hopefully they will tell what is wrong.
Image
Linux Mint 19.2 64-bit Cinnamon, Total Commander 9.22a 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

DamnedDog
Level 1
Level 1
Posts: 16
Joined: Thu Mar 26, 2020 2:26 pm

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by DamnedDog »

karlchen wrote:
Fri Mar 27, 2020 4:42 pm
OK.
The command journalctl -b -r will display what systemd-journald is logging. The option -b -r will tell the command journalctl to display the currently used journal in reverse order, i.e. starting from the end. Result of the commandline: display the most recently logged messages, from youngest to older messages.
If you could post one screenful of those messages, my expectation is that the same message(s) will repeat over and over again.
Hopefully they will tell what is wrong.
Here is a picture. Hopefully you don't mind that it's taken with a phone.
Image

User avatar
karlchen
Level 20
Level 20
Posts: 12315
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by karlchen »

To be honest, marking the text in the terminal window, copying it into the clipboard and pasting it here would have made reading the text much easier. :wink:
And it would have permitted me / others to mark error messages, right-click and select "Google search".
Image
Linux Mint 19.2 64-bit Cinnamon, Total Commander 9.22a 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

User avatar
pbear
Level 12
Level 12
Posts: 4047
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: LM 19.3 xfce taking up about 70-90% of my CPU

Post by pbear »

DamnedDog wrote:
Fri Mar 27, 2020 4:35 pm
If it is a broken ISO I have no idea where to find a good ISO.
As I said before, you can buy one (one of many sellers). Alternatively, do the download on a different computer, maybe your brother's?
Time flies like an arrow. Fruit flies like a banana.
If your problem has been solved, please edit the thread title.

Post Reply

Return to “Newbie Questions”