diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2018-03-20 10:46:15 +0800 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2018-03-20 10:46:15 +0800 |
commit | ed2d9472fb5c3b2da8b012e335e714ee2819447a (patch) | |
tree | e72d1636c54ab8151b7cb01d63e6ad1edb2f0b5c /www | |
parent | cb418a6221708b069ba85e7aead7b6f79d8eac44 (diff) | |
download | freebsd-ports-ed2d9472fb5c3b2da8b012e335e714ee2819447a.tar.gz freebsd-ports-ed2d9472fb5c3b2da8b012e335e714ee2819447a.tar.zst freebsd-ports-ed2d9472fb5c3b2da8b012e335e714ee2819447a.zip |
www/chromium: Workaround description for the hanging tabs problem
Thanks to the solution suggested by Dmitri Goutnik, I am amending
pkg-message with the workaround for the hanging tabs problem.
Putting ~/.cache/chromium on memory-fs solved the problem for me.
Now chromium doesn't hang even on a heavily loaded machine.
PR: 226793
Reported by: Dmitri Goutnik <dg@syrec.org>
Approved by: Carlos J. Puga Medina <cpm@freebsd.org> (maintainer)
Notes
Notes:
svn path=/head/; revision=465058
Diffstat (limited to 'www')
-rw-r--r-- | www/chromium/Makefile | 2 | ||||
-rw-r--r-- | www/chromium/pkg-message | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 5c9f33ba5004..7ee81282f9f4 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -3,7 +3,7 @@ PORTNAME= chromium PORTVERSION= 64.0.3282.186 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES?= www MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} diff --git a/www/chromium/pkg-message b/www/chromium/pkg-message index 62ed727c5f0e..4de99f403f42 100644 --- a/www/chromium/pkg-message +++ b/www/chromium/pkg-message @@ -1,7 +1,8 @@ +--I-- For correct operation, shared memory support has to be enabled in Chromium by performing the following command as root : -sysctl kern.ipc.shm_allow_removed=1 +# sysctl kern.ipc.shm_allow_removed=1 To preserve this setting across reboots, append the following to /etc/sysctl.conf : @@ -9,3 +10,14 @@ to /etc/sysctl.conf : kern.ipc.shm_allow_removed=1 FreeBSD 11.0-R and newer have this set by default. + +--II-- +Chromium has a known problem of hanging tabs. The workaround +for this problem is to mount ~/.cache/chromium as memory-fs. +In order to do this, before you run chromium, please run these +commands once as root for each user who uses chromium (replace +{user}/{group} with your user/group names): + +# [ -d ~{user}/.cache/chromium ] || mkdir ~{user}/.cache/chromium +# echo "md $(echo ~{user})/.cache/chromium mfs rw,late,-w{user}:{group},-s300m 2 0" >> /etc/fstab +# mount ~{user}/.cache/chromium |