You are not logged in.
Hello!
My computer has been running increasingly slowly, and I am trying to get to the bottom of it. I have two possible indicators of a problem. One is the result of /proc/meminfo- VmallocTotal is obviously absurdly high. I have already tried to clear the Memory Buffer cache, but this has not seemed to work.
MemTotal: 16320072 kB
MemFree: 14778696 kB
MemAvailable: 15066892 kB
Buffers: 98968 kB
Cached: 514820 kB
SwapCached: 0 kB
Active: 971236 kB
Inactive: 378980 kB
Active(anon): 753236 kB
Inactive(anon): 82584 kB
Active(file): 218000 kB
Inactive(file): 296396 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 15730684 kB
SwapFree: 15730684 kB
Dirty: 2652 kB
Writeback: 0 kB
AnonPages: 554528 kB
Mapped: 243164 kB
Shmem: 99400 kB
Slab: 84828 kB
SReclaimable: 59328 kB
SUnreclaim: 25500 kB
KernelStack: 4448 kB
PageTables: 9180 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 23890720 kB
Committed_AS: 1593700 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 94208 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 89600 kB
DirectMap2M: 1890304 kB
DirectMap1G: 15728640 kB
The second comes down to CPU utilization. Running top, I find nothing, but when analyzing with perf, I find that the intel_idle command wrapped around swapper is consuming 80% of my CPU time.
Any ideas?
Offline
Turn off swap for testing purposes. What does top say about memory usage?
Offline
I disabled swap. Below is the output of top:
top - 21:11:24 up 12 min, 5 users, load average: 2.32, 1.89, 1.14
Tasks: 219 total, 2 running, 217 sleeping, 0 stopped, 0 zombie
%Cpu0 : 4.8/0.7 5[||| ]
%Cpu1 : 0.6/1.9 3[| ]
%Cpu2 : 2.6/0.7 3[| ]
%Cpu3 : 2.0/0.7 3[| ]
%Cpu4 : 4.0/2.6 7[||| ]
%Cpu5 : 3.3/0.7 4[|| ]
%Cpu6 : 10.3/4.1 14[||||||| ]
%Cpu7 : 0.7/0.0 1[ ]
GiB Mem : 7.7/15.564 [ ]
GiB Swap: 0.0/15.002 [ ]
Offline
I mean does anything eat obvious huge amounts of RAM. Is it better without swap, so we can diagnose more?
Offline
Nope- I have gone through and disabled anything that would be eating ram. Moreover, it is not actual ram that is consumed but it seems virtual ram is merely allocated and not used. The only thing I can think of is that I have been developing in Vagrant with VirtualBox a lot lately- but I disabled that and the allocated RAM is still there.
Last edited by DerekTBrown (2016-07-09 01:24:25)
Offline
In a shocking twist, I did a full reinstall and have the same problem. Here is the output of perf:
+ 26.82% 0.12% swapper [kernel.vmlinux] [k] cpu_startup_entry
+ 23.30% 0.02% swapper [kernel.vmlinux] [k] call_cpuidle
+ 23.28% 0.01% swapper [kernel.vmlinux] [k] cpuidle_enter
+ 22.37% 0.00% swapper [kernel.vmlinux] [k] start_secondary
+ 21.37% 0.11% swapper [kernel.vmlinux] [k] cpuidle_enter_state
+ 21.12% 21.07% swapper [kernel.vmlinux] [k] intel_idle
+ 5.24% 0.03% Xorg [kernel.vmlinux] [k] entry_SYSCALL_64_fastpath
+ 4.67% 0.00% swapper [kernel.vmlinux] [k] rest_init
+ 4.67% 0.00% swapper [kernel.vmlinux].init.text [k] start_kernel
+ 4.67% 0.00% swapper [kernel.vmlinux].init.text [k] x86_64_start_reservations
+ 4.67% 0.00% swapper [kernel.vmlinux].init.text [k] x86_64_start_kernel
Offline
Got a full pacman -Qe and a list.of running services?
Offline
$ pacman -Qe
atom 1.0-4
autoconf 2.69-3
automake 1.15-1
bash 4.3.046-1
binutils 2.26.1-1
bison 3.0.4-2
broadcom-wl-dkms 6.30.223.271-8
bullet-train-oh-my-zsh-theme-git v0.0.5.r170.g0a53726-1
bumblebee 3.2.1-11
bzip2 1.0.6-5
coreutils 8.25-2
cryptsetup 1.7.2-1
cups 2.1.4-1
darktable 1:2.0.5-1
device-mapper 2.02.158-1
dhcpcd 6.11.1-1
dialog 1:1.3_20160424-1
diffutils 3.3-3
dolphin 16.04.2-1
e2fsprogs 1.43.1-1
entangle 0.7.1-1
fakeroot 1.20.2-1
ffmpegthumbs 16.04.2-1
file 5.28-1
filesystem 2015.09-1
findutils 4.6.0-1
flex 2.6.0-3
gawk 4.1.3-1
gcc 6.1.1-2
gcc-libs 6.1.1-2
gettext 0.19.7-1
gimp 2.8.16-2
git 2.9.0-1
glibc 2.23-5
google-chrome 51.0.2704.106-1
grep 2.25-2
groff 1.22.3-6
grub 1:2.02.beta2-6
gzip 1.8-2
i3status 2.10-1
inetutils 1.9.4-2
insync 1.3.8-2
insync-dolphin 1.3.8.36087-1
iproute2 4.5.0-2
iputils 20160308.0db72a4-1
iw 4.7-1
jfsutils 1.1.15-4
kdegraphics-thumbnailers 16.04.2-1
konsole 16.04.2-1
lemonbar-git v1.2.r2.gd680ea4-1
less 481-2
libtool 2.4.6-5
licenses 20140629-1
linux 4.6.3-1
logrotate 3.9.2-1
lvm2 2.02.158-1
m4 1.4.17-2
make 4.2.1-1
man-db 2.7.5-2
man-pages 4.06-1
mdadm 3.4-1
mesa 11.2.2-1
messengerfordesktop-git 1.5.0.beta.0.r15.g1f76ab2-1
nano 2.6.1-1
netctl 1.12-2
networkmanager 1.2.2-1
nvidia 367.27-1
package-query 1.8-2
pacman 5.0.1-4
patch 2.7.5-1
pciutils 3.5.1-1
pcmciautils 018-7
perl 5.24.0-1
pkg-config 0.29.1-1
plasma-meta 5.7-1
plist-gist 0.1-1
powerline-fonts-git r100.a44abd0-2
print-manager 16.04.2-1
procps-ng 3.3.11-2
psmisc 22.21-3
pulseaudio 9.0-1
reiserfsprogs 3.6.24-1
s-nail 14.8.9-1
sed 4.2.2-4
shadow 4.2.1-3
spotify 1.0.32.96-1
sudo 1.8.16-1
sysfsutils 2.1.0-9
systemd-sysvcompat 230-5
tar 1.29-1
texinfo 6.1-4
usbutils 008-1
util-linux 2.28-1
vi 1:070224-2
vim 7.4.1910-1
vundle 0.10.2-1
which 2.21-2
wpa_supplicant 1:2.5-3
xf86-input-synaptics 1.8.99.1-1
xf86-video-intel 1:2.99.917+674+g9154dff-1
xfsprogs 4.5.0-1
xorg-xinit 1.3.4-4
xorg-xprop 1.2.2-1
xorg-xrandr 1.5.0-1
yaourt 1.8.1-1
zsh 5.2-1
zsh-completions 0.18.0-1
$ systemctl
UNIT LOAD ACTIVE SUB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
sys-devices-pci0000:00-0000:00:02.0-drm-card0-card0\x2deDP\x2d1-intel_backlight.device loaded active plugged /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight
sys-devices-pci0000:00-0000:00:03.0-sound-card0.device loaded active plugged Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
sys-devices-pci0000:00-0000:00:1b.0-sound-card1.device loaded active plugged 8 Series/C220 Series Chipset High Definition Audio Controller
sys-devices-pci0000:00-0000:00:1c.2-0000:08:00.0-net-enp8s0.device loaded active plugged Killer E220x Gigabit Ethernet Controller
sys-devices-pci0000:00-0000:00:1c.4-0000:0a:00.0-net-wlp10s0.device loaded active plugged BCM4352 802.11ac Wireless Network Adapter
sys-devices-pci0000:00-0000:00:1d.0-usb2-2\x2d1-2\x2d1.5-2\x2d1.5:1.0-bluetooth-hci0.device loaded active plugged /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/bluetooth/hci0
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active plugged WDC_WD10JPVX-75JC3T0 Windows
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda2.device loaded active plugged WDC_WD10JPVX-75JC3T0 Drive
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda.device loaded active plugged WDC_WD10JPVX-75JC3T0
sys-devices-pci0000:00-0000:00:1f.2-ata5-host4-target4:0:0-4:0:0:0-block-sr0.device loaded active plugged HL-DT-ST_DVD+_-RW_GS40N
sys-devices-pci0000:00-0000:00:1f.2-ata6-host5-target5:0:0-5:0:0:0-block-sdb-sdb1.device loaded active plugged Samsung_SSD_840_EVO_500GB_mSATA 1
sys-devices-pci0000:00-0000:00:1f.2-ata6-host5-target5:0:0-5:0:0:0-block-sdb-sdb2.device loaded active plugged Samsung_SSD_840_EVO_500GB_mSATA 2
sys-devices-pci0000:00-0000:00:1f.2-ata6-host5-target5:0:0-5:0:0:0-block-sdb.device loaded active plugged Samsung_SSD_840_EVO_500GB_mSATA
sys-devices-platform-serial8250-tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-devices-virtual-misc-rfkill.device loaded active plugged /sys/devices/virtual/misc/rfkill
sys-module-configfs.device loaded active plugged /sys/module/configfs
sys-subsystem-bluetooth-devices-hci0.device loaded active plugged /sys/subsystem/bluetooth/devices/hci0
sys-subsystem-net-devices-enp8s0.device loaded active plugged Killer E220x Gigabit Ethernet Controller
sys-subsystem-net-devices-wlp10s0.device loaded active plugged BCM4352 802.11ac Wireless Network Adapter
-.mount loaded active mounted /
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
mnt-drive.mount loaded active mounted /mnt/drive
run-user-1000.mount loaded active mounted /run/user/1000
sys-kernel-config.mount loaded active mounted Configuration File System
sys-kernel-debug.mount loaded active mounted Debug File System
tmp.mount loaded active mounted Temporary Directory
systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
init.scope loaded active running System and Service Manager
session-c2.scope loaded active running Session c2 of user derekbro
dbus.service loaded active running D-Bus System Message Bus
insync@derekbro.service loaded active exited Insync
kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
NetworkManager.service loaded active running Network Manager
polkit.service loaded active running Authorization Manager
rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
sddm.service loaded active running Simple Desktop Display Manager
systemd-backlight@backlight:intel_backlight.service loaded active exited Load/Save Screen Backlight Brightness of backlight:intel_backlight
systemd-fsck@dev-disk-by\x2duuid-246bb889\x2de1c6\x2d4514\x2d8c95\x2dcc259bc6cbd2.service loaded active exited File System Check on /dev/disk/by-uuid/246bb889-e1c6-4514-8c95-cc259bc6cbd2
systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
udisks2.service loaded active running Disk Manager
upower.service loaded active running Daemon for power management
user@1000.service loaded active running User Manager for UID 1000
wpa_supplicant.service loaded active running WPA supplicant
-.slice loaded active active Root Slice
system-getty.slice loaded active active system-getty.slice
system-insync.slice loaded active active system-insync.slice
system-systemd\x2dbacklight.slice loaded active active system-systemd\x2dbacklight.slice
system-systemd\x2dfsck.slice loaded active active system-systemd\x2dfsck.slice
system.slice loaded active active System Slice
user-1000.slice loaded active active User Slice of derekbro
user.slice loaded active active User and Session Slice
dbus.socket loaded active running D-Bus System Message Bus Socket
dm-event.socket loaded active listening Device-mapper event daemon FIFOs
lvm2-lvmetad.socket loaded active listening LVM2 metadata daemon socket
systemd-coredump.socket loaded active listening Process Core Dump Socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald-dev-log.socket loaded active running Journal Socket (/dev/log)
systemd-journald.socket loaded active running Journal Socket
systemd-rfkill.socket loaded active listening Load/Save RF Kill Switch Status /dev/rfkill Watch
systemd-udevd-control.socket loaded active running udev Control Socket
systemd-udevd-kernel.socket loaded active running udev Kernel Socket
basic.target loaded active active Basic System
bluetooth.target loaded active active Bluetooth
cryptsetup.target loaded active active Encrypted Volumes
getty.target loaded active active Login Prompts
graphical.target
local-fs-pre.target
local-fs.target
multi-user.target
network.target
paths.target
remote-fs.target
slices.target
sockets.target
sound.target
swap.target
sysinit.target
timers.target
logrotate.timer
shadow.timer
systemd-tmpfiles-clean.timer
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
99 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
Offline
I cannot find anything obvious. Could you try the different tips from this page and find out, what exactly swaps so much?
Offline
1) In reinstalling I completely disabled the swap as I have plenty of RAM. Given the problem didn't go away, its fair to say it isnt a swap issue. Just to be sure, I ran the tests on the page you outlined, and I am using 0kB swap, and reasonable levels of actual memory for all of the processes.
2) The "swapper" referred to in the perf command is, I believe, the cpu swapper (used to share cpu time), not a reference to memory. Which makes this more of a CPU issue.
Offline