Bug#722571: [Pkg-chromium-maint] Bug#722571: chromium: Writes short-lived temp files to /var/tmp instead of /tmp
On 12/09/2013 14:11, Julian Andres Klode wrote: Chromium writes several short-lived files to /var/tmp, but those should be written to /tmp. Users with SSDs often mount a tmpfs on /tmp to reduce writes to the SSD. But /var/tmp cannot be a tmpfs, as it needs to be preserved across reboots. Writing those short-lived files to /var/tmp thus causes unnecessary writes to the SSD. You can set it in /etc/chromium/default : CHROMIUM_FLAGS=--password-store=detect --disk-cache-dir=/tmp Cheers, Giuseppe. signature.asc Description: OpenPGP digital signature
Bug#722571: [Pkg-chromium-maint] Bug#722571: chromium: Writes short-lived temp files to /var/tmp instead of /tmp
On Fri, Sep 13, 2013 at 10:23 AM, Giuseppe Iuculano giuse...@iuculano.it wrote: On 12/09/2013 14:11, Julian Andres Klode wrote: Chromium writes several short-lived files to /var/tmp, but those should be written to /tmp. Users with SSDs often mount a tmpfs on /tmp to reduce writes to the SSD. But /var/tmp cannot be a tmpfs, as it needs to be preserved across reboots. Writing those short-lived files to /var/tmp thus causes unnecessary writes to the SSD. You can set it in /etc/chromium/default : CHROMIUM_FLAGS=--password-store=detect --disk-cache-dir=/tmp Cheers, Giuseppe. It's not the cache. Those are temporary files with random names that only exist for a second or shorter. My cache was on a tmpfs already. -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#722571: [Pkg-chromium-maint] Bug#722571: chromium: Writes short-lived temp files to /var/tmp instead of /tmp
On Fri, Sep 13, 2013 at 12:26 PM, Julian Andres Klode j...@debian.org wrote: On Fri, Sep 13, 2013 at 10:23 AM, Giuseppe Iuculano giuse...@iuculano.it wrote: On 12/09/2013 14:11, Julian Andres Klode wrote: Chromium writes several short-lived files to /var/tmp, but those should be written to /tmp. Users with SSDs often mount a tmpfs on /tmp to reduce writes to the SSD. But /var/tmp cannot be a tmpfs, as it needs to be preserved across reboots. Writing those short-lived files to /var/tmp thus causes unnecessary writes to the SSD. You can set it in /etc/chromium/default : CHROMIUM_FLAGS=--password-store=detect --disk-cache-dir=/tmp Cheers, Giuseppe. It's not the cache. Those are temporary files with random names that only exist for a second or shorter. My cache was on a tmpfs already. As you can see in the shortened inotifywait -m log of my chromium startup, it creates the file, opens it, and deletes it right away, but keeps it open. /var/tmp/ CLOSE_NOWRITE,CLOSE,ISDIR /var/tmp/ CREATE etilqs_Y5xFMpBKNivTXdC /var/tmp/ OPEN etilqs_Y5xFMpBKNivTXdC /var/tmp/ DELETE etilqs_Y5xFMpBKNivTXdC /var/tmp/ MODIFY etilqs_Y5xFMpBKNivTXdC [... repeated ...] /var/tmp/ CREATE etilqs_Eq0G5Rar5TQzzIr /var/tmp/ OPEN etilqs_Eq0G5Rar5TQzzIr /var/tmp/ DELETE etilqs_Eq0G5Rar5TQzzIr /var/tmp/ MODIFY etilqs_Eq0G5Rar5TQzzIr /var/tmp/ MODIFY etilqs_Eq0G5Rar5TQzzIr /var/tmp/ MODIFY etilqs_Eq0G5Rar5TQzzIr /var/tmp/ CREATE etilqs_XIrqj6iwC6R36p7 /var/tmp/ OPEN etilqs_XIrqj6iwC6R36p7 /var/tmp/ DELETE etilqs_XIrqj6iwC6R36p7 /var/tmp/ MODIFY etilqs_XIrqj6iwC6R36p7 /var/tmp/ MODIFY etilqs_XIrqj6iwC6R36p7 It does not only do this at startup, but also during running; whenever I load a new website. -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#722571: [Pkg-chromium-maint] Bug#722571: chromium: Writes short-lived temp files to /var/tmp instead of /tmp
On Fri, Sep 13, 2013 at 12:33:31PM +0200, Julian Andres Klode wrote: On Fri, Sep 13, 2013 at 12:26 PM, Julian Andres Klode j...@debian.org wrote: On Fri, Sep 13, 2013 at 10:23 AM, Giuseppe Iuculano giuse...@iuculano.it wrote: On 12/09/2013 14:11, Julian Andres Klode wrote: Chromium writes several short-lived files to /var/tmp, but those should be written to /tmp. Users with SSDs often mount a tmpfs on /tmp to reduce writes to the SSD. But /var/tmp cannot be a tmpfs, as it needs to be preserved across reboots. Writing those short-lived files to /var/tmp thus causes unnecessary writes to the SSD. You can set it in /etc/chromium/default : CHROMIUM_FLAGS=--password-store=detect --disk-cache-dir=/tmp Cheers, Giuseppe. It's not the cache. Those are temporary files with random names that only exist for a second or shorter. My cache was on a tmpfs already. As you can see in the shortened inotifywait -m log of my chromium startup, it creates the file, opens it, and deletes it right away, but keeps it open. /var/tmp/ CLOSE_NOWRITE,CLOSE,ISDIR /var/tmp/ CREATE etilqs_Y5xFMpBKNivTXdC /var/tmp/ OPEN etilqs_Y5xFMpBKNivTXdC /var/tmp/ DELETE etilqs_Y5xFMpBKNivTXdC /var/tmp/ MODIFY etilqs_Y5xFMpBKNivTXdC [... repeated ...] /var/tmp/ CREATE etilqs_Eq0G5Rar5TQzzIr /var/tmp/ OPEN etilqs_Eq0G5Rar5TQzzIr /var/tmp/ DELETE etilqs_Eq0G5Rar5TQzzIr /var/tmp/ MODIFY etilqs_Eq0G5Rar5TQzzIr /var/tmp/ MODIFY etilqs_Eq0G5Rar5TQzzIr /var/tmp/ MODIFY etilqs_Eq0G5Rar5TQzzIr /var/tmp/ CREATE etilqs_XIrqj6iwC6R36p7 /var/tmp/ OPEN etilqs_XIrqj6iwC6R36p7 /var/tmp/ DELETE etilqs_XIrqj6iwC6R36p7 /var/tmp/ MODIFY etilqs_XIrqj6iwC6R36p7 /var/tmp/ MODIFY etilqs_XIrqj6iwC6R36p7 It does not only do this at startup, but also during running; whenever I load a new website. This is caused by sqlite3 (spell the prefix backwards). Exporting TMPDIR=/tmp when starting chromium works around it. Basically patching src/os_unix.c of the sqlite3 code to list /tmp before /var/tmp fixes this. I also reported this bug for the sqlite3 package now (#722699); but chromium seems to bundle its own copy of sqlite3, so it would be good to get this changed here as well. I'll let you know what the sqlite3 maintainer has to say. -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#722571: chromium: Writes short-lived temp files to /var/tmp instead of /tmp
Package: chromium Version: 29.0.1547.57-3 Severity: normal Control: forwarded -1 https://code.google.com/p/chromium/issues/detail?id=290117 Chromium writes several short-lived files to /var/tmp, but those should be written to /tmp. Users with SSDs often mount a tmpfs on /tmp to reduce writes to the SSD. But /var/tmp cannot be a tmpfs, as it needs to be preserved across reboots. Writing those short-lived files to /var/tmp thus causes unnecessary writes to the SSD. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (980, 'unstable'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages chromium depends on: ii chromium-inspector 29.0.1547.57-3 ii gconf-service3.2.6-1 ii libasound2 1.0.27.2-1 ii libatk1.0-0 2.8.0-2 ii libc62.17-92+b1 ii libcairo21.12.14-5 ii libcups2 1.6.3-1 ii libdbus-1-3 1.6.14-1 ii libexpat12.1.0-4 ii libfontconfig1 2.10.2-2 ii libfreetype6 2.4.9-1.1 ii libgcc1 1:4.8.1-10 ii libgconf-2-4 3.2.6-1 ii libgcrypt11 1.5.3-2 ii libgdk-pixbuf2.0-0 2.28.2-1 ii libglib2.0-0 2.36.4-1 ii libgnome-keyring03.8.0-2 ii libgtk2.0-0 2.24.20-1 ii libjpeg8 8d-1 ii libnspr4 2:4.10-1 ii libnss3 2:3.15.1-1 ii libnss3-1d 2:3.15.1-1 ii libpango-1.0-0 1.32.5-5+b1 ii libpangocairo-1.0-0 1.32.5-5+b1 ii libspeechd2 0.7.1-6.2 ii libstdc++6 4.8.1-10 ii libudev0 175-7.2 ii libx11-6 2:1.6.1-1 ii libxcomposite1 1:0.4.4-1 ii libxdamage1 1:1.1.4-1 ii libxext6 2:1.3.2-1 ii libxfixes3 1:5.0.1-1 ii libxml2 2.9.1+dfsg1-3 ii libxrender1 1:0.9.8-1 ii libxslt1.1 1.1.28-2 ii libxss1 1:1.2.2-1 ii xdg-utils1.1.0~rc1+git20111210-7 chromium recommends no packages. Versions of packages chromium suggests: pn chromium-l10n none -- no debconf information -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. pgpZOgAKpTRvG.pgp Description: PGP signature