Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32459

libqt4-script: avoid 2GB VIRT memory usage by JIT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.5
    • Qt Script
    • None
    • Debian GNU/Linux, x86-64.

      See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712387 for the original bugreport.
      See https://bugs.webkit.org/show_bug.cgi?id=118733 for the webkit bugreport.

      I've attached the patch here as well: it uses MAP_32BIT instead of allocating 2GB of VIRT on x86-64, and avoids problems with lack of overcommit/swap.
      Otherwise applications like KDE's plasma end up using ~3GB of RAM, and kwin similarly, and you soon end up running out of physical RAM even on a machine with 8GB of physical RAM.
      Given that a javascript JIT is not a core feature of a Qt application like KDE, I think it should be more conservative about its memory usage. (in fact I wouldn't mind
      having a way to turn off the JIT, but that is another bugreport).

        1. jit_no_gb_mem.patch
          2 kB
          Török Edwin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            shausman Simon Hausmann
            edwin Török Edwin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes