You are not logged in.

#1 2020-07-24 23:15:25

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

[Solved] Tips to optimize Archlinux to run programs more effectively

Hello, I recently switched over from Windows 10 to ArchLinux and I am very new too the linux system. I am using KDE Plasma and followed the default system instillation guide on the ArchLinux Wikipedia for the actual operating system. The only change in hardware between my performance on Windows and ArchLinux is the switch from two 250GB hard drive (formatted to RAID 1) and now a single 4TB hard drive (with no raid formatting).

I am currently having an issue where anytime my computer has to do anything its power tanks. If I am downloading something everything slows down, If i run a program everything slows down, and if I try to run a video game a jumpy 15fps is standard. Compared to Windows this just seems pitiful, so what should I do to speed this up, and what should I do too test if this could be a fault with the new Hard drive?

If you would like any information on my computer just request it, and if you'd like the outputs to any command simply request which ones you'd like me to run.

Last edited by aaron4atkinson (2020-07-27 03:49:29)

Offline

#2 2020-07-25 01:01:58

Thiago H
Member
Registered: 2010-06-05
Posts: 16

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

Hello!

It's hard to pinpoint exactly what's the bottleneck given the information you provided, so I'll try to guide you.
The following is what I'd do first if I had the same problem:

1) Check if your graphics driver is installed. You might, for instance, require the proprietary Nvidia driver if you have one of their GPUs, and so on. My reasoning is that a missing GPU driver coupled with a composing desktop running by software rendering might overload the CPU whenever you ask a little bit more of it;

2) Once 1) above has been taken care of, open up a system monitor (CTRL+ESC on KDE, if I'm not mistaken?), pin its window to the top, sort by CPU usage (descending), and monitor the numbers while you try to do stuff. Take note of any processes that might use too much CPU.

Let us know what you found out after doing 1 and 2 above!

Offline

#3 2020-07-25 05:03:10

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

Alright sorry for the long wait.
I checked and my graphics card is a Nvidea Geforce GTX 760, now I remembered installing this but I've also made some mistakes when setting up before so I checked either way. I have the kernal for Nvidea graphics cards. The specific kernal used was nouveau.


Next I tried running the game Verdun and looked at my CPU usage while doing so and it only ever reached 15% max.
I also looked and compiled a list and I have 8Gb of Ram, and a CPU with a speed of 3.10 GHz speed. If you would like a full list of my computers insides I will put one together for you!

Offline

#4 2020-07-25 06:50:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

Try the behavior w/ a more basic desktop (eg. openbox or icewm) - plasma/qml had a bunch issues with the indicators in the taskbar.

made some mistakes when setting up before so I checked either way. I have the kernal for Nvidea

frankly isn't very convincing.
Please post your Xorg log.

Offline

#5 2020-07-25 16:24:19

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

I am currently short on time and will try the behavior in the recommended desktops later tonight, I tried to use "grep -e Log -e tty Xorg.0.log" to view issues as the ArchWiki recommends, and when I tried to view the log mentioned in the wiki with nano it says that it does not exist. Should I view this through the install medium with my hard drive?

Either way I simply typed Xorg in and got:
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.



I don't know what any of this means, but it looks like either a catastrophic issue or me using the command incorrectly, So i looked under var/log/xorg/log with nano and the file had no contents but existed.

Offline

#6 2020-07-25 17:44:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

You're trying to start X11 from a running X11 session (which would require you to direct it to a different display, not the default :0)

(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.

Offline

#7 2020-07-25 22:39:30

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

Alright, I loaded Xorg.0.log and it is too large for me to entirely paste into this. So i looked through it for significant appearing warnings and errors and this is what I found.


[429.088] (WW)  Open ACPI failed (/var//run/acpid.socket) (No such file or directory)

[429.245](II)  LoadModule: "nv"
[429.245] (WW)  Warning,couldn't open module nv
[429.245](EE)  Failed to load module "nv" (module does not exist,0)

*repeat above except with a module called "fbdev"

Those were the major appearing ones I found in the log, if I simply type the Xorg command into arch-chroot then text flashes too fast for me to read or copy and the screen goes black. The shutdown process shows on screen if I manually shutdown via powerbutton from this state. I don't catch what they are about but several warnings pop up before the screen goes black, I assume this means I setup Xorg incorrectly when installing my desktop, is this a correct assumption?

Offline

#8 2020-07-25 22:42:10

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

You can use a pastebin client to post a link to your log. https://wiki.archlinux.org/index.php/Li … in_clients

Offline

#9 2020-07-26 18:42:55

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

I got the Xorg log, it is slightly long

here is a link to it: http://ix.io/2snh

Offline

#10 2020-07-26 18:48:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

That xorg log is for the live environment...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2020-07-26 18:56:16

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

I thought that was the log that was needed, what file should I post?

Offline

#12 2020-07-26 19:03:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

Did you install archlinux?
Why -and how- are you running Xorg from the live environment?

Offline

#13 2020-07-26 19:23:01

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

I've installed arch linux, I thought the issue that was being had was that I was trying to access the Xorg files from the desktop (X11 session?) and needed to go back through the install medium to get the ones that are needed. I installed Xorg because I believe it was needed for Wine to function correctly.

Offline

#14 2020-07-26 19:26:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

No. The issue of #5 was that you were trying to run X11 from within an X11 session.

Just boot your regular desktop and upload the xorg log of that session. Don't try to start another X11 server - there is a log for the running one.

Offline

#15 2020-07-26 19:43:15

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

Alright, the only other Xorg log that I can see is a file called Xorg.1.log where the last one was Xorg.0.log

https://pastebin.com/irK8CNQh

Also, always assume I don't know what I am doing, I know nothing of Linux besides the most basic of commands. I am sorry for my apparent foolishness

Offline

#16 2020-07-26 19:47:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

[ 21940.008] (==) Log file: "/var/log/Xorg.1.log", Time: Mon Jul 20 17:24:18 2020

The log is 6 days old and from a second X11 server (on display :1)
You ended up using the modesetting driver, the nvidia driver wasn't even considered (perhaps not yet installed?)

Are you saying there's no /var/log/Xorg.0.log?

Offline

#17 2020-07-26 19:53:14

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

My mistake, Xorg.0.log is appearing different now that I am no longer in the install medium. Does it refresh whenever the computer is restarted to take a new log?

Here is Xorg.0.log
https://pastebin.com/Wmc6CC9U

Offline

#18 2020-07-26 20:00:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

When you boot the install iso, /var is a part on that iso. When you boot normally, it's a path on your disk.
The log is updated everytime you start Xorg.

You're running on the nouveau driver.

pacman -Qs '(nvidia|linux)'
lspci
lsmod

Offline

#19 2020-07-26 20:14:14

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

Result of pacman -Qs '(Nvidia|linux)' is:

local/alsa-lib 1.2.3.2-1
    An alternative implementation of Linux sound support
local/archlinux-appstream-data 20200720-1
    Arch Linux application database for AppStream-based software centers
local/archlinux-keyring 20200622-1
    Arch Linux PGP keyring
local/avahi 0.8+15+ge8a3dd0-1
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/base 2-2
    Minimal package set to define a basic Arch Linux installation
local/filesystem 2020.05.20-1
    Base Arch Linux files
local/iptables 1:1.8.5-2
    Linux kernel packet control tool (using legacy interface)
local/kdenlive 20.04.3-1 (kde-applications kde-multimedia)
    A non-linear video editor for Linux using the MLT video framework
local/keyutils 1.6.3-1
    Linux Key Management Utilities
local/kmod 27-1
    Linux kernel module management tools and library
local/lib32-alsa-lib 1.2.3.2-1
    An alternative implementation of Linux sound support (32 bit)
local/lib32-libxshmfence 1.3-2
    a library that exposes a event API on top of Linux futexes (32-bit)
local/lib32-util-linux 2.35.2-1
    Miscellaneous system utilities for Linux (32-bit)
local/libaio 0.3.112-2
    The Linux-native asynchronous I/O facility (aio) library
local/libiec61883 1.2.0-6
    A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394
local/libimobiledevice 1.3.0-1
    Library that talks the protocols to support iPhone and iPod Touch devices on Linux
local/libraw1394 2.1.2-3
    Provides an API to the Linux IEEE1394 (FireWire) driver
local/libutil-linux 2.35.2-1
    util-linux runtime libraries
local/libva 2.8.0-1
    Video Acceleration (VA) API for Linux
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/libxshmfence 1.3-2
    a library that exposes a event API on top of Linux futexes
local/linux 5.7.9.arch1-1
    The Linux kernel and modules
local/linux-api-headers 5.6.11-1
    Kernel headers sanitized for use in userspace
local/linux-firmware 20200519.8ba6fa6-1
    Firmware files for Linux
local/linux-headers 5.7.9.arch1-1
    Headers and scripts for building modules for the Linux kernel
local/mdadm 4.1-2
    A tool for managing/monitoring Linux md device arrays, also known as Software RAID
local/ndctl 68-2
    Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel
local/pacman-mirrorlist 20200606-1
    Arch Linux mirror list for use by pacman
local/util-linux 2.35.2-1
    Miscellaneous system utilities for Linux
local/v4l-utils 1.20.0-1
    Userspace tools and conversion library for Video 4 Linux
local/xf86-video-nouveau 1.0.16-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards

lspci:

00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation P67 Express Chipset LPC Controller (rev 05)
00:1f.2 RAID bus controller: Intel Corporation SATA Controller [RAID mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 760] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
02:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
04:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller (rev 01)
05:00.0 SATA controller: JMicron Technology Corp. JMB362 SATA Controller (rev 10)

lsmod:

Module                  Size  Used by
rfkill                 28672  3
snd_hda_codec_realtek   135168  1
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
hid_logitech_hidpp     45056  0
snd_hda_codec_hdmi     73728  1
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
intel_rapl_msr         20480  0
intel_rapl_common      32768  1 intel_rapl_msr
snd_hda_intel          53248  4
snd_usb_audio         315392  2
snd_intel_dspcfg       28672  1 snd_hda_intel
nouveau              2375680  15
snd_hda_codec         167936  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_usbmidi_lib        40960  1 snd_usb_audio
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
coretemp               20480  0
kvm_intel             327680  0
joydev                 28672  0
kvm                   835584  1 kvm_intel
i2c_algo_bit           16384  1 nouveau
input_leds             16384  0
hid_logitech_dj        28672  0
irqbypass              16384  1 kvm
snd_rawmidi            45056  1 snd_usbmidi_lib
snd_seq_device         16384  1 snd_rawmidi
mc                     61440  1 snd_usb_audio
ttm                   118784  1 nouveau
mousedev               24576  0
snd_hda_core          106496  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
drm_kms_helper        253952  1 nouveau
crct10dif_pclmul       16384  1
crc32_pclmul           16384  0
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
cec                    69632  1 drm_kms_helper
snd_pcm               147456  5 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
ghash_clmulni_intel    16384  0
r8169                  98304  0
iTCO_wdt               16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
rc_core                61440  1 cec
aesni_intel           368640  0
gpio_ich               16384  0
mei_me                 49152  0
snd_timer              45056  1 snd_pcm
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
mxm_wmi                16384  1 nouveau
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
snd                   114688  24 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
realtek                24576  1
crypto_simd            16384  1 aesni_intel
soundcore              16384  1 snd
libphy                147456  2 r8169,realtek
mei                   126976  1 mei_me
cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
glue_helper            16384  1 aesni_intel
lpc_ich                28672  0
i2c_i801               36864  0
evdev                  28672  17
mac_hid                16384  0
rapl                   16384  0
intel_cstate           16384  0
pcspkr                 16384  0
intel_uncore          159744  0
wmi                    36864  2 mxm_wmi,nouveau
crypto_user            16384  0
drm                   581632  18 drm_kms_helper,ttm,nouveau
agpgart                53248  3 ttm,nouveau,drm
ip_tables              36864  0
x_tables               53248  1 ip_tables
ext4                  798720  2
crc32c_generic         16384  0
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  139264  1 ext4
hid_generic            16384  0
usbhid                 65536  1 hid_logitech_dj
hid                   143360  4 usbhid,hid_generic,hid_logitech_dj,hid_logitech_hidpp
firewire_ohci          45056  0
xhci_pci               20480  0
crc32c_intel           24576  4
xhci_hcd              286720  1 xhci_pci
firewire_core          81920  1 firewire_ohci
crc_itu_t              16384  1 firewire_core
ehci_pci               20480  0
ehci_hcd               98304  1 ehci_pci

Last edited by aaron4atkinson (2020-07-26 20:21:18)

Offline

#20 2020-07-26 20:17:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

Please edit the post and wrap the outputs in code tags, https://bbs.archlinux.org/help.php#bbcode

Neither the nvidia kernel modules (nvidia) nor the X11 driver (nvidia-utils) are installed (but you installed xf86-video-nouveau)

Edit: see https://wiki.archlinux.org/index.php/NVIDIA

Last edited by seth (2020-07-26 20:17:51)

Offline

#21 2020-07-26 20:22:00

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

Alright, I will install both and get back on whether that has solved the issue, thank you for showing me how to make outputs appear as code

Offline

#22 2020-07-26 20:23:02

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

aaron4atkinson wrote:

Result of pacman -Qs '(Nvidia|linux)'

Linux is case sensitive.
This will not produce the output that was requested.

Offline

#23 2020-07-26 20:24:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

Ensure to not cunduct a partial update, in doubt "pacman -Syu nvidia nvidia-utils"

@ondoho, try "pacman -Qs 'lIbDrM'" ;-)

Edit, @aaron4atkinson: but in general ondoho is right, please pay attention to the spelling (though not too close - some of us tend to typo smile

Last edited by seth (2020-07-26 20:27:01)

Offline

#24 2020-07-26 21:09:57

aaron4atkinson
Member
Registered: 2020-07-21
Posts: 27

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

My mistake I did type 'nvidia' I accidentally hit shift will typing in the message here, that is the output that the proper input gives from the console.

I have downloaded both of the kernals, before I try to check things is there any configuration I should do before hand?

Offline

#25 2020-07-26 21:26:33

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Tips to optimize Archlinux to run programs more effectively

This has been bugging me all through the thread - it's kernel not kernal.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB