Vivaldi Linux using too much memory and swap



  • Been using Vivaldi (Linux, 64-bit) in a private window for a while today, when it began to noticeably slow down. Was looking at photos on Flickr when this began to occur. I opened a terminal window and ran "top", which displayed Vivaldi was using 75% of the memory and quite likely, most of the swap space.

    Could there be an explanation for this?

    I have attached a screenshot of the "top" screen showing this information.

    vivaldi screenshot memory.png



  • What do you see using Vivaldi's Task Manager by pressing Shift+ESC, or your distro's System Monitor or equivalent one (Ctrl+ESC), outside the terminal? Virtual & shared are different than the actual "private working" memory. A process has reserved too much though which could be a memory leak, or the page is just too heavy.


  • Moderator

    Hello there, can you post the output of the Cmd line below
    $ swap on

    $ swapon -s

    $ 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"]}' '{}' \;

    Thank you

    Edited: escaping the backslash



  • swapon -s
    Filename Type Size Used Priority
    /dev/dm-0 partition 3801084 365568 -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'


  • Moderator

    @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


  • Moderator

    @mib2berlin thanks for sharing your insights.


  • Moderator

    @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.


  • Moderator

    @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.


  • Moderator

    @edwardp I am sorry for that. What if you exec the command and right after issue echo $?, I will got a # greater than 0
    findd.png
    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
    findd.png
    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 $?
    1

    The 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.


  • Moderator

    @edwardp @edwardp Got it.
    The forum did not print the slash before the semicolon
    ;

    fec8a92f-754e-4c5d-95ba-db948cd9b0e0-image.png

    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.


  • Moderator

    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
    

  • Moderator

    @edwardp I understand Vivaldi is not responsible for the use of swap, at least not directly. Please, could you please compare Chromium?


Log in to reply
 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.