High /dev/shm usage



  • Vivaldi causes high /dev/shm usage until either a)it hits limit on size and as a result offending tab/tabs (or the browser itself) crashes (default for my setup with only 150MB on /dev/shm, it happens several times a day) or b)RAM is exhausted. Browser crashes because of bus error [url=https://vivaldi.net/en-US/forum/vivaldi-browser-for-linux/4626-vivaldi-1-0-252-3-1-on-archlinux]like this[/url]. This problem happens only when using media rich sites ([url=https://vk.com]VK[/url], [url=https://habitica.com]Habitica[/url] and such). Looks like high memory usage is not directly caused by Vivaldi (pulseaudio involved here) but since it's the first time I see this kind of thing I blame Vivaldi. I'll use [url=https://vk.com/feed]VK's newsfeed[/url] as an example. VK is a social network, typical user newsfeed (like mine) has lots of media (both audio and video), infinite scrolling and no autoplay at all. 'df -h | grep none && free -m && ls -a /dev/shm' command will be used to display memory usage, pulse-shm-* are pulseaudio's runtime files. 1) no open newsfeed [code]none 150M 25M 126M 17% /dev/shm none 300M 44K 300M 1% /tmp total used free shared buff/cache available Mem: 1885 658 100 158 1125 816 Swap: 2499 132 2367 . .. pulse-shm-1196676611 pulse-shm-2330259033 pulse-shm-3860239731[/code] 2) just opened newsfeed [code]none 150M 34M 117M 23% /dev/shm none 300M 44K 300M 1% /tmp total used free shared buff/cache available Mem: 1885 721 107 173 1056 738 Swap: 2499 132 2367 . .. pulse-shm-1196676611 pulse-shm-2330259033 pulse-shm-3860239731 pulse-shm-976839400[/code] 3) scrolled back a bit [code]none 150M 41M 110M 28% /dev/shm none 300M 44K 300M 1% /tmp total used free shared buff/cache available Mem: 1885 798 97 192 989 642 Swap: 2499 132 2367 . .. pulse-shm-1196676611 pulse-shm-2330259033 pulse-shm-3860239731[/code] 4) Scrolled back even more [code]none 150M 109M 42M 73% /dev/shm none 300M 44K 300M 1% /tmp total used free shared buff/cache available Mem: 1885 834 142 264 907 536 Swap: 2499 134 2365 . .. pulse-shm-1196676611 pulse-shm-2330259033 pulse-shm-3860239731[/code] 5) Closed the newsfeed (same goes for crash) [code]none 150M 27M 124M 18% /dev/shm none 300M 56K 300M 1% /tmp total used free shared buff/cache available Mem: 1885 776 341 179 767 680 Swap: 2499 134 2365 . .. pulse-shm-1196676611 pulse-shm-2330259033 pulse-shm-3860239731[/code] And it can easily go this far: [code]tmpfs 1,0G 270M 755M 27% /dev/shm tmpfs 943M 0 943M 0% /sys/fs/cgroup tmpfs 1,0G 12K 1,0G 1% /run/user/1000 total used free shared buff/cache available Mem: 1885 534 464 401 886 743 Swap: 2499 121 2378 итого 272K drwxrwxrwt 2 root root 120 фев 21 15:57 ./ drwxr-xr-x 19 root root 3,4K фев 21 15:33 ../ -rwx------ 1 rtkt share 65M фев 21 15:54 pulse-shm-2016926581* -rwx------ 1 rtkt share 65M фев 21 15:50 pulse-shm-3241139477* -rwx------ 1 rtkt share 65M фев 21 13:43 pulse-shm-3447561555* -rwx------ 1 rtkt share 65M фев 21 15:54 pulse-shm-847324260*[/code] (made /dev/shm's max size 1G, scrolled back newsfeed to the yesterday and issued 'df -h | grep tmpfs && free -m && ls -la /dev/shm' from the command line) Disabling Flash and deleting browser profile doesn't help. OS: Archlinux x64. Vivaldi was installed with the help of AUR [url=https://aur.archlinux.org/packages/vivaldi-snapshot](this package)[/url] That's what I got on 'about' page: [code]Vivaldi 1.0.390.3 (Сборка для разработчиков) dev (64 бит) Версия 58cbfea9d04ee6e997e793372525abc54292c97f ОС Linux Blink 537.36 (@0) JavaScript V8 4.8.271.17 Flash 20.0.0.306 User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.88 Safari/537.36 Vivaldi/1.0.390.3 Командная строка /usr/bin/vivaldi-snapshot --user-data-dir=/home/main/.config/vivaldi-snapshot --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=20.0.0.306 --always-authorize-plugins --disable-translate --flag-switches-begin --flag-switches-end --enable-tab-audio-muting Путь к исполняемому файлу /opt/vivaldi-snapshot/vivaldi-snapshot Путь к профилю /home/main/.config/vivaldi-snapshot/Default Варианты 16e0dd70-3f4a17df 775ebbd7-3d47f4f4 4ea303a6-3f4a17df[/code] [b]EDIT:[/b] no, Pulseaudio is not involved, this issue is directly caused by Vivaldi. Chromium uses /dev/shm too, [url=https://bugs.chromium.org/p/chromium/issues/detail?id=522853&can=1&q=dev%20shm&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified]but this bug has already been fixed[/url] (Chromium 48.0.2564.116 is not affected, /dev/shm usage is a lot lower).


Log in to reply
 

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