Vivaldi Linux using too much memory and swap
-
@edwardp said in Vivaldi Linux using too much memory and swap:
365568
Currently you are using 365568 of 3801084
@edwardp said in Vivaldi Linux using too much memory and swap:
find: missing argument to `-exec'
There is nothing wrong with the syntax
$ swapon -s Filename Type Size Used Priority /dev/sda5 partition 8224764 0 -2 lamarca@debian:~ $ echo $? 0
lamarca@debian:~ $ find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' \; lamarca@debian:~ $ echo $? 0
How much RAM do you own, and your distro.
-
@lamarca I copied and pasted the syntax from your message, twice, to make sure I copied everything, same error came up both times.
I have Fedora 32 (64-bit) with 3Gb of RAM on the system.
When I ran the commands, it was at the point that Vivaldi began to do the same thing as when this was originally reported, in hopes that the commands would have shown something.
-
@lamarca
Hi, just for info, the second command does not work on Opensuse for my first try Yesterday but now it work. ? No idea why./dev/sda3 partition 8165372 8488 -2
1 systemd 108 kB 483 haveged 44 kB 623 auditd 52 kB 1279 polkitd 220 kB 1459 ModemManager 8 kB 1460 firewalld 48 kB 1967 NetworkManager 36 kB 2200 cupsd 36 kB 2258 wpa_supplicant 8 kB 2341 master 16 kB 2358 cron 8 kB 3274 sddm 1548 kB 3282 X 3532 kB 3310 (sd-pam) 300 kB 3362 gpg-agent 64 kB 3472 udisksd 32 kB 3541 upowerd 4 kB
System is running for some days already, regular I don´t need swap space.
Cheers, mib
-
@mib2berlin thanks for sharing your insights.
-
@edwardp said in Vivaldi Linux using too much memory and swap:
I copied and pasted the syntax from your message, twice, to make sure I copied everything, same error came up both times.
Sure you did. The string ends with semicolon. Somehow an asterisk is added at the end.
How much Ram do you have? -
@lamarca said in Vivaldi Linux using too much memory and swap:
@edwardp said in Vivaldi Linux using too much memory and swap:
I copied and pasted the syntax from your message, twice, to make sure I copied everything, same error came up both times.
Sure you did. The string ends with semicolon. Somehow an asterisk is added at the end.
How much Ram do you have?3Gb
The * at the end of the same command brought up the same error.
-
@edwardp said in Vivaldi Linux using too much memory and swap:
- at the end of the same command brought up the same error.
The command does Not end with *
find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' ;
-
@lamarca said in Vivaldi Linux using too much memory and swap:
@edwardp said in Vivaldi Linux using too much memory and swap:
- at the end of the same command brought up the same error.
The command does Not end with *
find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' ;
find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' ; find: missing argument to `-exec'
Same error.
Thanks anyway.
-
@edwardp I am sorry for that. What if you exec the command and right after issue echo $?, I will got a # greater than 0
Modern browsers run better with a little more Ram. I will ping the Dev anyway. -
@lamarca said in Vivaldi Linux using too much memory and swap:
@edwardp I am sorry for that. What if you exec the command and right after issue echo $?, I will got a # greater than 0
Modern browsers run better with a little more Ram. I will ping the Dev anyway.~]$ find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' ;
find: missing argument to `-exec'~]$ echo $?
1The above results (?) occurred without any swap being used. Where should the "exec' go in the above??
Memory is actually 3.6Gb.
-
~]$ swapon -s Filename Type Size Used Priority /dev/dm-0 partition 3801084 747264 -2
find /proc -maxdepth 2 -path "/proc/[0-9]/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' ; **find: missing argument to `-exec'**
~]$ echo $? 1
When the hard drive just indicated non-stop activity while repeating the cause of the memory usage, these commands were run again, with the resulting output.
-
@edwardp @edwardp Got it.
The forum did not print the slash before the semicolon
;You can escape it with double backslash \; or use the markdown syntax
find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' \;
@edwardp said in Vivaldi Linux using too much memory and swap:
The above results (?) occurred without any swap being used
echo $? is the return code from the last command issued, where zero means no error.
-
OK, I will reproduce and report back with the results.
-
Thanks for the feedback.
-
~]$ find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' \;
1 systemd 3140 kB 509 systemd-journal 1320 kB 529 systemd-udevd 5812 kB 699 auditd 660 kB 701 sedispatch 316 kB 721 ModemManager 1764 kB 722 accounts-daemon 1536 kB 723 alsactl 240 kB 724 avahi-daemon 300 kB 727 firewalld 21208 kB 729 irqbalance 164 kB 732 rngd 952 kB 735 rsyslogd 1172 kB 737 rtkit-daemon 272 kB 739 smartd 1360 kB 740 systemd-homed 1120 kB 741 systemd-logind 1200 kB 751 chronyd 344 kB 754 dbus-broker-lau 884 kB 756 avahi-daemon 320 kB 758 abrtd 2392 kB 776 dbus-broker 1632 kB 783 polkitd 7220 kB 784 abrt-dump-journ 2008 kB 785 abrt-dump-journ 2180 kB 786 abrt-dump-journ 1952 kB 798 NetworkManager 1848 kB 815 cupsd 2292 kB 821 gssproxy 676 kB 827 colord 1968 kB 932 atd 164 kB 933 crond 772 kB 943 lxdm-binary 296 kB 946 Xorg 19172 kB 972 lxdm-session 944 kB 975 gnome-keyring-d 864 kB 978 systemd-userdbd 952 kB 983 systemd 2040 kB 987 (sd-pam) 3676 kB 995 lxqt-session 5160 kB 1016 dbus-broker-lau 428 kB 1017 dbus-broker 608 kB 1028 imsettings-daem 1364 kB 1031 gvfsd 928 kB 1036 gvfsd-fuse 908 kB 1125 xfconfd 608 kB 1181 ssh-agent 472 kB 1221 openbox 2100 kB 1224 com.gitlab.bits 15588 kB 1226 hp-systray 21560 kB 1232 blueberry-obex- 11796 kB 1238 agent 628 kB 1249 kscreen_backend 2348 kB 1251 pcmanfm-qt 19612 kB 1254 lxqt-globalkeys 5012 kB 1257 lxqt-notificati 5060 kB 1261 lxqt-panel 36652 kB 1265 lxqt-policykit- 4944 kB 1266 lxqt-runner 22292 kB 1269 xscreensaver 820 kB 1280 nm-applet 5700 kB 1332 dconf-service 772 kB 1333 abrt-applet 3312 kB 1340 abrt-dbus 2508 kB 1354 applet.py 15496 kB 1383 gvfsd-trash 1176 kB 1401 hp-systray 14280 kB 1402 hp-systray 14164 kB 1403 udisksd 2808 kB 1409 at-spi-bus-laun 592 kB 1410 gvfs-udisks2-vo 1800 kB 1411 pulseaudio 3408 kB 1418 dbus-broker-lau 332 kB 1427 dbus-broker 192 kB 1441 upowerd 1500 kB 1443 gvfs-mtp-volume 752 kB 1447 gvfs-afc-volume 956 kB 1451 gconf-helper 792 kB 1452 gconfd-2 608 kB 1470 gvfs-goa-volume 712 kB 1503 goa-daemon 6436 kB 1504 obexd 648 kB 1512 at-spi2-registr 696 kB 1542 xdg-desktop-por 1576 kB 1564 xdg-document-po 516 kB 1567 xdg-permission- 568 kB 1572 fusermount 112 kB 1577 xdg-desktop-por 3232 kB 1585 xdg-desktop-por 4204 kB 1589 pipewire 2508 kB 1593 pipewire-media- 1028 kB 1595 gnome-keyring-d 812 kB 1619 goa-identity-se 1068 kB 1621 gvfs-gphoto2-vo 964 kB 1643 sssd_kcm 908 kB 1644 lxqt-powermanag 4760 kB 1646 nm-tray 4812 kB 1660 gvfsd-metadata 2192 kB 1748 vivaldi-bin 100660 kB 1752 cat 296 kB 1753 cat 304 kB 1756 vivaldi-bin 11168 kB 1757 vivaldi-bin 8968 kB 1759 vivaldi-bin 8972 kB 1780 vivaldi-bin 43824 kB 1783 vivaldi-bin 43324 kB 1792 vivaldi-bin 12316 kB 1810 pcscd 1208 kB 1821 vivaldi-bin 29344 kB 1838 vivaldi-bin 32216 kB 1845 vivaldi-bin 14604 kB 1851 vivaldi-bin 32560 kB 3332 vivaldi-bin 14396 kB 3354 vivaldi-bin 10380 kB 9469 vivaldi-bin 25044 kB 9943 vivaldi-bin 13388 kB 11796 vivaldi-bin 238544 kB 11820 vivaldi-bin 19020 kB 12127 vivaldi-bin 12556 kB 12138 vivaldi-bin 14248 kB 12171 vivaldi-bin 17476 kB 12521 vivaldi-bin 11828 kB 12814 systemd-userwor 912 kB 12818 systemd-userwor 916 kB 12819 systemd-userwor 756 kB
~]$ echo $? 0
top - 18:11:01 up 9:03, 0 users, load average: 1.15, 1.53, 1.33 Tasks: 210 total, 2 running, 208 sleeping, 0 stopped, 0 zombie %Cpu(s): 6.8 us, 2.2 sy, 0.0 ni, 90.4 id, 0.0 wa, 0.3 hi, 0.3 si, 0.0 st MiB Mem : 3675.8 total, 113.6 free, 3007.5 used, 554.7 buff/cache MiB Swap: 3712.0 total, 2426.7 free, 1285.3 used. 188.3 avail Mem
~]$ swapon -s Filename Type Size Used Priority /dev/dm-0 partition 3801084 1310420 -2
-
@edwardp I understand Vivaldi is not responsible for the use of swap, at least not directly.
Please, could you please compare Chromium? -
Chromium-freeworld (from RPM Fusion):
1 systemd 3484 kB 509 systemd-journal 1316 kB 529 systemd-udevd 5824 kB 699 auditd 600 kB 701 sedispatch 316 kB 721 ModemManager 1764 kB 722 accounts-daemon 1600 kB 723 alsactl 240 kB 724 avahi-daemon 312 kB 727 firewalld 21208 kB 729 irqbalance 172 kB 732 rngd 960 kB 735 rsyslogd 1052 kB 737 rtkit-daemon 268 kB 739 smartd 1436 kB 740 systemd-homed 1160 kB 741 systemd-logind 1156 kB 751 chronyd 264 kB 754 dbus-broker-lau 884 kB 756 avahi-daemon 320 kB 758 abrtd 2392 kB 776 dbus-broker 1732 kB 783 polkitd 7352 kB 784 abrt-dump-journ 2060 kB 785 abrt-dump-journ 2136 kB 786 abrt-dump-journ 1952 kB 798 NetworkManager 1832 kB 815 cupsd 2236 kB 821 gssproxy 672 kB 827 colord 1968 kB 932 atd 164 kB 933 crond 752 kB 943 lxdm-binary 296 kB 946 Xorg 19872 kB 972 lxdm-session 944 kB 975 gnome-keyring-d 896 kB 978 systemd-userdbd 932 kB 983 systemd 2040 kB 987 (sd-pam) 3684 kB 995 lxqt-session 5060 kB 1016 dbus-broker-lau 428 kB 1017 dbus-broker 948 kB 1028 imsettings-daem 1364 kB 1031 gvfsd 1008 kB 1036 gvfsd-fuse 908 kB 1125 xfconfd 608 kB 1181 ssh-agent 472 kB 1221 openbox 1876 kB 1224 com.gitlab.bits 15116 kB 1226 hp-systray 21320 kB 1232 blueberry-obex- 11884 kB 1238 agent 628 kB 1249 kscreen_backend 2236 kB 1251 pcmanfm-qt 17472 kB 1254 lxqt-globalkeys 4992 kB 1257 lxqt-notificati 4900 kB 1261 lxqt-panel 36136 kB 1265 lxqt-policykit- 4924 kB 1266 lxqt-runner 22332 kB 1269 xscreensaver 860 kB 1280 nm-applet 5704 kB 1332 dconf-service 772 kB 1333 abrt-applet 3312 kB 1340 abrt-dbus 2516 kB 1354 applet.py 15368 kB 1383 gvfsd-trash 1176 kB 1401 hp-systray 14316 kB 1402 hp-systray 14164 kB 1403 udisksd 3056 kB 1409 at-spi-bus-laun 800 kB 1410 gvfs-udisks2-vo 1868 kB 1411 pulseaudio 3404 kB 1418 dbus-broker-lau 332 kB 1427 dbus-broker 220 kB 1441 upowerd 1616 kB 1443 gvfs-mtp-volume 752 kB 1447 gvfs-afc-volume 956 kB 1451 gconf-helper 796 kB 1452 gconfd-2 632 kB 1470 gvfs-goa-volume 712 kB 1503 goa-daemon 6440 kB 1504 obexd 648 kB 1512 at-spi2-registr 636 kB 1542 xdg-desktop-por 1684 kB 1564 xdg-document-po 640 kB 1567 xdg-permission- 568 kB 1572 fusermount 112 kB 1577 xdg-desktop-por 3312 kB 1585 xdg-desktop-por 4224 kB 1589 pipewire 2608 kB 1593 pipewire-media- 1128 kB 1595 gnome-keyring-d 812 kB 1619 goa-identity-se 1016 kB 1621 gvfs-gphoto2-vo 964 kB 1643 sssd_kcm 908 kB 1644 lxqt-powermanag 4760 kB 1646 nm-tray 4788 kB 1660 gvfsd-metadata 2216 kB 13775 pcscd 1264 kB 19931 chromium-freewo 43044 kB 19936 cat 88 kB 19937 cat 88 kB 19943 chromium-freewo 15068 kB 19944 chromium-freewo 13192 kB 19946 chromium-freewo 13052 kB 19964 chromium-freewo 34344 kB 19972 chromium-freewo 22944 kB 19982 chromium-freewo 31196 kB 20029 chromium-freewo 28128 kB 20037 chromium-freewo 16952 kB 20128 chromium-freewo 204320 kB 20297 chromium-freewo 16200 kB 20375 chromium-freewo 17432 kB 20871 chromium-freewo 10944 kB
top - 20:36:42 up 11:29, 0 users, load average: 0.89, 1.86, 1.53 Tasks: 202 total, 1 running, 201 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.8 us, 1.2 sy, 0.0 ni, 94.5 id, 2.2 wa, 0.2 hi, 0.2 si, 0.0 st MiB Mem : 3675.8 total, 159.6 free, 2905.2 used, 611.0 buff/cache MiB Swap: 3712.0 total, 2957.3 free, 754.7 used. 186.1 avail Mem
$ echo $? 0
$ swapon -s Filename Type Size Used Priority /dev/dm-0 partition 3801084 778148 -2
-
Vivaldi uses less swap than Chromium
1756 vivaldi-bin 11168 kB
1757 vivaldi-bin 8968 kB
1759 vivaldi-bin 8972 kB
1780 vivaldi-bin 43824 kB
1783 vivaldi-bin 43324 kB
1792 vivaldi-bin 12316 kB
19943 chromium-freewo 15068 kB
19944 chromium-freewo 13192 kB
19946 chromium-freewo 13052 kB
19964 chromium-freewo 34344 kB
19972 chromium-freewo 22944 kB
19982 chromium-freewo 31196 kB
20029 chromium-freewo 28128 kB
20037 chromium-freewo 16952 kB
20128 chromium-freewo 204320 kB
20297 chromium-freewo 16200 kB
20375 chromium-freewo 17432 kB
20871 chromium-freewo 10944 kBPossibility the issue lies on your sys specs. I suggest a hardware upgrade.
The number of replies is too high (22), better tag it as Unsolved.
If you have further questions, please start a new thread.Sorry for the inconvenient.
-
This script sums the amount of Ram usage, and displays the output on Desktop. Add it as a cronjob
In case you want to try, just let me know.
Btw, verified by @Ruarí, just in case.
That doesn't fix the issue -
@lamarca Cron job? I'm not that technical when it comes to Linux.
I ran those commands when the hard drive activity light began to light up (more or less) non-stop. It took quicker for Chromium than it did for Vivaldi.
Otherwise, Vivaldi and Chromium run fine under normal browsing.