running chromium without any swap space is causing issues

Alexander Best arundel at freebsd.org
Wed Oct 26 20:16:55 UTC 2011


hi there,

recently i removed the swap partition entry from my fstab, because i figured
2GB of RAM should be enough for the stuff i'm doing.

chromium however now behaves pretty strange. it shows empty tabs, although the
pages have been fully loaded beforehand. also i get a lot of "Aw, snap!" pages.

i checked the top(1) output and there's still ~ another 100 megs of ram
available:

last pid:  2363;  load averages:  0.95,  1.02,  0.99                                                                                                                                                                                                       up 0+04:28:01  22:07:02
103 processes: 3 running, 99 sleeping, 1 waiting
CPU:     % user,     % nice,     % system,     % interrupt,     % idle
Mem: 1293M Active, 227M Inact, 309M Wired, 35M Cache, 212M Buf, 96M Free
Swap: 

  PID    UID    THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
 1798   1001     24  40    0  1033M   184M uwait   1   2:58  0.00% chromium-browser:  (chrome)
 1888   1001      4  40    0   966M   164M usem    0   1:01  0.00% chrome: --type=zygote (chrome)
 1865   1001      3  40    0   357M   158M uwait   0   0:04  0.00% chrome: --type=gpu-process --channel=1798.0x685c960.12431063
 1855   1001      4  40    0   945M   148M usem    0   0:26  0.00% chrome: --type=zygote (chrome)
 1851   1001      4  40    0   933M   134M usem    1   0:19  0.00% chrome: --type=zygote (chrome)
 1852   1001      4  40    0   931M   130M usem    0   0:07  0.00% chrome: --type=zygote (chrome)
 1820   1001      4  40    0   920M   112M usem    0   0:20  0.00% chrome: --type=zygote (chrome)
 1825   1001      4  40    0   909M   108M usem    0   0:25  0.00% chrome: --type=zygote (chrome)
 1826   1001      4  40    0   901M    99M usem    0   0:11  0.00% chrome: --type=zygote (chrome)
 1805   1001      4  40    0   899M    98M usem    1   0:10  0.00% chrome: --type=zygote (chrome)
 1850   1001      4  40    0   897M    98M usem    0   0:14  0.00% chrome: --type=zygote (chrome)
 1804   1001      6  40    0   894M 99656K uwait   0   0:28  0.54% chrome: --type=zygote (chrome)
 2326   1001      4  40    0   898M 96888K usem    0   0:06  0.00% chrome: --type=zygote (chrome)
 1824   1001      4  40    0   893M 94956K usem    0   0:14  0.00% chrome: --type=zygote (chrome)
 1823   1001      4  40    0   893M 93712K usem    1   0:08  0.00% chrome: --type=zygote (chrome)
 1849   1001      4  40    0   890M 91476K usem    0   0:10  0.00% chrome: --type=zygote (chrome)
 1809   1001      4  40    0   890M 90576K usem    0   0:06  0.00% chrome: --type=zygote (chrome)
 1822   1001      4  40    0   893M 89572K usem    0   0:03  0.00% chrome: --type=zygote (chrome)
 1821   1001      4  40    0   893M 89560K usem    1   0:03  0.00% chrome: --type=zygote (chrome)
 1829   1001      4  40    0   888M 89440K usem    0   0:05  0.00% chrome: --type=zygote (chrome)
 1811   1001      4  40    0   876M 76096K usem    1   0:03  0.00% chrome: --type=zygote (chrome)
 1830   1001      2   4    0   281M 69096K kqread  0   1:34  0.00% chrome: --type=plugin --plugin-path=/usr/home/arundel/.mozil
 1807   1001      4  40    0   869M 68436K usem    0   0:14  0.00% chrome: --type=zygote (chrome)
 1806   1001      4  40    0   867M 64240K usem    1   0:04  0.00% chrome: --type=zygote (chrome)
 1840   1001      1  58    0   378M 62988K CPU1    1 208:57 89.16% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1857   1001      1  40    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1859   1001      1  40    0   378M 62988K futex   1   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1863   1001      1  40    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1860   1001      1  40    0   378M 62988K futex   1   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1856   1001      1  40    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1861   1001      1  40    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1853   1001      1  40    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1854   1001      1  42    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1808   1001      4  40    0   867M 62436K usem    1   0:02  0.00% chrome: --type=zygote (chrome)
 1801   1001      1  40    0   360M 49300K select  0   0:08  0.00% /usr/local/bin/pidgin
 1802   1001      1   4    0   274M 44484K sbwait  0   0:00  0.00% chrome: --type=zygote (chrome)
 1799   1001      2  40    0   845M 41252K usem    0   0:03  0.00% chromium-browser:  (chrome)
 1777   1001      1  40    0   915M 39116K select  0   1:21  0.00% /usr/local/bin/Xorg -nolisten inet6
 1790   1001      2  -8    0   197M 36304K piperd  0   0:11  0.00% /usr/local/bin/sakura
 1781   1001      1   4    0   208M 27132K kqread  0   0:48  0.00% /usr/local/bin/awesome
 1429   1001      3  60    0   147M  9392K uwait   0   0:04  0.00% /usr/local/bin/musicpd /usr/local/etc/musicpd.conf
 1608      0     18   1    0 60988K  5504K waitvt  1   0:00  0.00% /usr/local/sbin/console-kit-daemon --no-daemon
 1606    560      2  -8    0 56940K  5376K piperd  0   0:02  0.00% /usr/local/sbin/hald
 1610      0      2  40    0 53668K  4716K select  0   0:00  0.00% /usr/local/libexec/polkitd
 1475      0      1   4    0 32344K  4396K kqread  0   0:00  0.00% /usr/local/sbin/cupsd -C /usr/local/etc/cups/cupsd.conf
 1438  65534      1  40    0 33244K  3756K select  0   0:00  0.00% /usr/local/bin/mpdscribble --daemon-user nobody
 1613      0      1  66    0 39068K  3288K select  0   0:00  0.00% hald-runner
  970      0      1  40    0 10372K  3252K select  0   0:00  0.00% /sbin/devd
 1519      0      1  40    0 20400K  3172K select  0   0:00  0.00% sendmail: accepting connections (sendmail)
 1528     25      1  16    0 20400K  3128K pause   0   0:00  0.00% sendmail: Queue runner at 00:30:00 for /var/spool/clientmqueue 

after doing `sudo swapon /dev/label/swapfs` and reloading the blank or snapped
tab, everything's back to normal:

last pid:  2374;  load averages:  1.22,  1.08,  1.02                                                                                                                                                                                                       up 0+04:30:36  22:09:37
103 processes: 3 running, 99 sleeping, 1 waiting
CPU:     % user,     % nice,     % system,     % interrupt,     % idle
Mem: 1312M Active, 233M Inact, 312M Wired, 35M Cache, 212M Buf, 69M Free
Swap: 10G Total, 10G Free

  PID    UID    THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
 1798   1001     29  40    0  1033M   184M uwait   1   3:06  5.22% chromium-browser:  (chrome)
 1888   1001      4  40    0   966M   164M usem    1   1:01  0.00% chrome: --type=zygote (chrome)
 1865   1001      3  40    0   357M   158M uwait   0   0:04  0.00% chrome: --type=gpu-process --channel=1798.0x685c960.12431063
 1855   1001      4  40    0   936M   137M usem    1   0:28  0.00% chrome: --type=zygote (chrome)
 1851   1001      4  40    0   933M   134M usem    0   0:19  0.00% chrome: --type=zygote (chrome)
 1824   1001      4  40    0   918M   133M usem    1   0:19  6.10% chrome: --type=zygote (chrome)
 1852   1001      4  40    0   931M   130M usem    0   0:07  0.00% chrome: --type=zygote (chrome)
 1820   1001      4  40    0   920M   112M usem    1   0:20  0.00% chrome: --type=zygote (chrome)
 1825   1001      4  40    0   909M   108M usem    0   0:25  0.00% chrome: --type=zygote (chrome)
 1826   1001      4  40    0   901M    99M usem    0   0:11  0.00% chrome: --type=zygote (chrome)
 1805   1001      4  40    0   899M    98M usem    1   0:10  0.00% chrome: --type=zygote (chrome)
 1850   1001      4  40    0   897M    98M usem    1   0:14  0.00% chrome: --type=zygote (chrome)
 2326   1001      4  40    0   898M 96872K usem    0   0:06  0.00% chrome: --type=zygote (chrome)
 1823   1001      4  40    0   893M 93712K usem    1   0:08  0.00% chrome: --type=zygote (chrome)
 1804   1001      6  40    0   893M 93648K uwait   0   0:28  0.00% chrome: --type=zygote (chrome)
 1849   1001      4  40    0   890M 91476K usem    0   0:10  0.00% chrome: --type=zygote (chrome)
 1809   1001      4  40    0   890M 90620K usem    0   0:06  0.00% chrome: --type=zygote (chrome)
 1822   1001      4  40    0   893M 89572K usem    0   0:03  0.00% chrome: --type=zygote (chrome)
 1821   1001      4  40    0   893M 89560K usem    1   0:03  0.00% chrome: --type=zygote (chrome)
 1829   1001      4  40    0   888M 89428K usem    0   0:05  0.00% chrome: --type=zygote (chrome)
 1811   1001      4  40    0   876M 76116K usem    1   0:03  0.00% chrome: --type=zygote (chrome)
 1830   1001      2   4    0   281M 69096K kqread  0   1:35  0.00% chrome: --type=plugin --plugin-path=/usr/home/arundel/.mozil
 1807   1001      4  40    0   869M 68508K usem    0   0:14  0.00% chrome: --type=zygote (chrome)
 1806   1001      4  40    0   867M 64260K usem    0   0:04  0.00% chrome: --type=zygote (chrome)
 1840   1001      1  61    0   378M 62988K CPU1    1 211:16 87.26% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1857   1001      1  40    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1859   1001      1  40    0   378M 62988K futex   1   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1863   1001      1  40    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1860   1001      1  40    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1856   1001      1  40    0   378M 62988K futex   1   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1861   1001      1  40    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1853   1001      1  40    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1854   1001      1  42    0   378M 62988K futex   0   0:00  0.00% /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin --plu
 1808   1001      4  40    0   867M 62436K usem    1   0:02  0.00% chrome: --type=zygote (chrome)
 1801   1001      1  40    0   360M 49300K select  0   0:08  0.00% /usr/local/bin/pidgin
 1802   1001      1   4    0   274M 44484K sbwait  0   0:00  0.00% chrome: --type=zygote (chrome)
 1799   1001      2  40    0   845M 41252K usem    0   0:03  0.00% chromium-browser:  (chrome)
 1777   1001      1  40    0   915M 39116K select  0   1:24  1.07% /usr/local/bin/Xorg -nolisten inet6
 1790   1001      2  -8    0   201M 36996K piperd  0   0:12  0.00% /usr/local/bin/sakura
 1781   1001      1   4    0   208M 27148K kqread  0   0:49  0.00% /usr/local/bin/awesome
 1429   1001      3  60    0   147M  9392K uwait   0   0:04  0.00% /usr/local/bin/musicpd /usr/local/etc/musicpd.conf
 1608      0     18   1    0 60988K  5504K waitvt  1   0:00  0.00% /usr/local/sbin/console-kit-daemon --no-daemon
 1606    560      2  -8    0 56940K  5376K piperd  0   0:02  0.00% /usr/local/sbin/hald
 1610      0      2  40    0 53668K  4716K select  0   0:00  0.00% /usr/local/libexec/polkitd
 1475      0      1   4    0 32344K  4396K kqread  0   0:00  0.00% /usr/local/sbin/cupsd -C /usr/local/etc/cups/cupsd.conf
 1438  65534      1  40    0 33244K  3756K select  0   0:00  0.00% /usr/local/bin/mpdscribble --daemon-user nobody
 2245   1001      1  40    0 22608K  3352K select  0   0:00  0.00% ssh hub
 1613      0      1  66    0 39068K  3288K select  0   0:00  0.00% hald-runner
  970      0      1  40    0 10372K  3252K select  0   0:00  0.00% /sbin/devd
 1519      0      1  40    0 20400K  3172K select  0   0:00  0.00% sendmail: accepting connections (sendmail)

this seems weird, because the fact that i can execute swapon(8) and swapoff(8)
indicates that the swap partition isn't used. so how can unsed swap space
effect chromium? so far removing the swap entry from my fstab hasn't had any
noticable effect on any other application, except chromium.

i'm running HEAD on amd64 (r226790).

cheers.
alex


More information about the freebsd-chromium mailing list