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

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

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes