Constant firefox crashes because of Qubes shared memory

132 views
Skip to first unread message

Guerlan

unread,
Apr 24, 2020, 9:00:35 PM4/24/20
to qubes-users
I started having constant firefox crashes on my debian9 Qube. I sent the crash reports to firefox and the said that the problem occurs because of the shared memory configuration of Qubes, but he don't know how it's configured.

Can somebody help me fixing this? How can I enlarge the shared memory?

David Hobach

unread,
Apr 25, 2020, 6:53:15 AM4/25/20
to Guerlan, qubes-users
Did you try to enlarge the maximum memory in your disposable VM template
to 2 GB or so?

David Hobach

unread,
Apr 25, 2020, 6:54:22 AM4/25/20
to Guerlan, qubes-users
In dom0 it's
qubes-vm-settings [your dvm template]

Or do it via qubes manager.

Foppe de Haan

unread,
Apr 26, 2020, 1:21:51 AM4/26/20
to qubes-users
Firefox crashes a lot for me too, with 7GB ram assigned, mostly on reddit, youtube pages. Makes it nearly unusable.

unman

unread,
Apr 26, 2020, 6:04:54 AM4/26/20
to qubes-users
On Sat, Apr 25, 2020 at 10:21:51PM -0700, Foppe de Haan wrote:
> Firefox crashes a lot for me too, with 7GB ram assigned, mostly on reddit,
> youtube pages. Makes it nearly unusable.
>

For the record, I don't have this problem with 800 maxmem on a 16GB
machine. That's with stock firefox on Fedora, and somewhat modified Ff
on Debian 10 minimal template.
The only add-ons I use are combinations of Privacy Badger, No Script,
canvas defender.
Tor Browser is solid.

Very occasionally I see a situation where I have a ghost tab, and the
other tabs grind slowly, but this is recoverable and only happens where
I have stupid numbers of qubes open with displays - that is, not where I
just have qubes open.

Doesn't help any one, but a different perspective.

On OP's original question, you can use:
`qvm-prefs <qube> maxmem XX` in dom0


donoban

unread,
Apr 27, 2020, 7:44:47 AM4/27/20
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I am running fedora-30 and never had this kind of crash with firefox.
My AppVms mostly have default 400MB/4000MB and some even less max
limit. Maybe is it related to debian-9? Could you test debian-10?
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEznLCgPSfWTT+LPrmFBMQ2OPtCKUFAl6mxaUACgkQFBMQ2OPt
CKWONg/8DxzS1fwOIBIbCarULt8buq7tAtFa5pl6gUF2sL9hn6Uboz53TJsf1e8g
N75pqb5JjFRaZTf2gGwYkTeAo/HFyWxdEZWRprmWcW/0iLHaB86KzxDRXDaREmEs
AWtZTbH7u6lTBx2U3YhPlW3YvBArMeqvdVY3SRIEk3Dl8c/snzMlQ0BQRwAazhmH
IoRy2jeSAEvG0U0CXbEdxRmqt5ck9mFCndPZTfCxPoBup02B1QhwjfMZmCh14F0/
zHaUZrHszUtVq5iAj6qe2x/PjY5NsAa15cOlM8I1h672vMxEJdv0WzWEYSdwhzEb
i6p/NwtsoeI35DJInedbAk+Z7gTypanqSU23dS9Y77ox7OY+MPuSd+OMNRm+RSl7
7EVJo+ABg2SoUiX1ESb8Py4zH1jF0EFFOraPbr/N9QppgWVblVBXkW8hAbgwJk6t
UoZJo0lHGbDHMj7TTfaU1nhvfwOmoYfiq/oTbs/+mamztUwYjI+jryOOBH+3JgXv
MreOm0YH0jsLTMwjVfmxv4zmaSoA7mTwt6gCOpoamq4j9P3onVNgMmo0xcvmTxV0
ReT5BPB1bASPH0vC7Kw+lfZndK/gYrptWAYjuw2Fo/jsh8z4zMUv9ppGe6TFu5kO
mnVCBrjP5/ljNtGSYvxUNdzI7L7f3Wn3kOJTcfQfilTyzcdosGk=
=+tb9
-----END PGP SIGNATURE-----

Zbigniew Łukasiak

unread,
Apr 27, 2020, 3:19:22 PM4/27/20
to donoban, qubes-users
I am running fedora-30 in an App-VM (not disposable) and I also
experience the crashes. Not only Firefox, Opera also crashes, while
Slack app and Thunderbird which also run all the time don't. I
thought this is because of not enough RAM - but out of frustration I
assigned 23GB to that machine and it did not help, also top reports
10GB free memory now.

In the past I also used Debian and I had those crashes too.

--

> --
> You received this message because you are subscribed to the Google Groups "qubes-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/1670d4bb-ea5b-0ea3-f72e-4284eff9b521%40riseup.net.



--
Zbigniew Lukasiak
https://medium.com/@zby
http://brudnopis.blogspot.com/

Zbigniew Łukasiak

unread,
May 4, 2020, 8:34:26 AM5/4/20
to donoban, qubes-users
marmarek advised me on irc to add more shared memory:

mount /dev/shm -o remount,size=10G

and it seems to work. 10G is close to half of that VM's RAM. Qubes was
assigning only 1G previously.

Cheers,
Zbigniew

Ulrich Windl

unread,
May 4, 2020, 4:00:02 PM5/4/20
to zzb...@gmail.com, don...@riseup.net, qubes...@googlegroups.com
>>> Zbigniew Lukasiak <zzb...@gmail.com> schrieb am 04.05.2020 um 14:34 in
Nachricht
<25184_1588595663_5EB00BCE_25184_83_1_CAGL_UUtUxkCeqF2xj8Fud5Fwj7dfT5GanOYhxmRx6
SonB...@mail.gmail.com>:
> marmarek advised me on irc to add more shared memory:
>
> mount /dev/shm -o remount,size=10G
>
> and it seems to work. 10G is close to half of that VM's RAM. Qubes was
> assigning only 1G previously.

Personally I think once your browser uses more than 1GB of memory, it's time
to restart it or to restrict scripts from collecting so much information in
RAM.

>
> Cheers,
> Zbigniew
>
>
>
>
> On Mon, Apr 27, 2020 at 9:19 PM Zbigniew Łukasiak <zzb...@gmail.com> wrote:
>>
https://groups.google.com/d/msgid/qubes-users/CAGL_UUtUxkCeqF2xj8Fud5Fwj7dfT5

> GanOYhxmRx6ESonBy3FA%40mail.gmail.com.



Foppe de Haan

unread,
May 5, 2020, 4:11:19 AM5/5/20
to qubes-users


On Monday, May 4, 2020 at 10:00:02 PM UTC+2, Ulrich Windl wrote:
>>> Zbigniew Lukasiak <zzb...@gmail.com> schrieb am 04.05.2020 um 14:34 in
Nachricht
<25184_1588595663_5EB00BCE_25184_83_1_CAGL_UUtUxkCeqF2xj8Fud5Fwj7dfT5GanOYhxmRx6
SonB...@mail.gmail.com>:
> marmarek advised me on irc to add more shared memory:
>
> mount /dev/shm -o remount,size=10G
>
> and it seems to work. 10G is close to half of that VM's RAM. Qubes was
> assigning only 1G previously.

Personally I think once your browser uses more than 1GB of memory, it's time
to restart it or to restrict scripts from collecting so much information in
RAM.

>
> Cheers,
> Zbigniew

that sounds nice, but it would mean restarting my browser as soon as I've opened it. :p
Reply all
Reply to author
Forward
0 new messages