Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534708 - www-client/chromium - ERROR:ipc_channel_posix.cc(213)] socketpair(): Too many open files
Summary: www-client/chromium - ERROR:ipc_channel_posix.cc(213)] socketpair(): Too many...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-04 20:34 UTC by Alex Barker
Modified: 2015-01-21 04:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barker 2015-01-04 20:34:33 UTC
Chromium is failing with "Too many open files" agian.  This bug has been popping up since at least chromium 16.  It went away for a while but now its back with a vengeance.  I have set fs.file-max to an absurd 50000000 and its still running out of files with about 50 tabs open.  


[21929:21951:0104/122534:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.org.chromium.Chromium.eoctt1 failed: Too many open files                                                                                                   
[21929:21929:0104/122534:ERROR:ipc_channel_posix.cc(213)] socketpair(): Too many open files                                                                                                                                                                
[21929:21929:0104/122534:FATAL:platform_channel_pair_posix.cc(40)] Check failed: socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0. : Too many open files    




Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.20-r1, 3.18.1-gentoo x86_64)
=================================================================
System uname: Linux-3.18.1-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
KiB Mem:    24686704 total,   4574728 free
KiB Swap:    2000088 total,   1999404 free
Timestamp of tree: Sun, 04 Jan 2015 19:15:01 +0000
sh bash 4.3_p33
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo proaudio java science luman tox-overlay torbrowser wtk local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="${CONFIG_PROTECT} /etc /etc/idea/conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pro-audio /var/lib/layman/java /var/lib/layman/science /var/lib/layman/luman /var/lib/layman/tox-overlay /var/lib/layman/torbrowser /var/lib/layman/wtk /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr berkdb branding bzip2 cairo cdda cddb cdr cifs cli consolekit cracklib crypt cups curl custom-cflags cxx dbus declarative dri dts dvd dvdr emboss encode exif faac fam ffmpeg firefox flac fortran ftp gdbm gif glamor gles2 gnutls gpm gsm gtk hal iconv icu ipv6 jpeg kde kipi lame lcms libnotify lm_sensors lto lzma mad mmx mmx2 mmxext mng modules mozilla mp3 mp4 mpeg multilib musepack mysql ncurses nfs nls nptl nptlonl nsplugin offensive ogg openal opengl openmp opus pam pango pcre pdf phonon pic plasma png policykit ppds python3 qt3support qt4 rar rdesktop rdp readline samba sdl session speex spell sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification steamgames_source_engine svg system-sqlite tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vnc vorbis vpx wavpack wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zip zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="access_compat actions alias auth_basic authn_core authz_core authz_host autoindex dir env filter log_config mime negotiation rewrite setenvif unique_id unixd" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" NETBEANS_MODULES="apisupport cnd dlight harness ide java nb php profiler websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="artec_eplus48u" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-05 07:25:32 UTC
You are likely hitting another ceiling long before you even get to fs.file-max. Try raising nofile in /etc/security/limits.conf. Or ulimit -n.
Comment 2 Alex Barker 2015-01-07 19:08:13 UTC
I did some testing and I believe you are correct, I set -Sn -Hn a bit higher and it appears to function normally again.  I guess they only thing for this bug would be to check if these settings should be raised for a default user?  Maybe a build warning to raise them?
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2015-01-20 12:16:05 UTC
(In reply to Alex Barker from comment #2)
> I did some testing and I believe you are correct, I set -Sn -Hn a bit higher
> and it appears to function normally again.  I guess they only thing for this
> bug would be to check if these settings should be raised for a default user?
> Maybe a build warning to raise them?

Where exactly did you need to make the change?
Comment 4 Alex Barker 2015-01-21 04:18:25 UTC
I just added the following to /etc/security/limits.conf

kwhat           soft    nofile          8192
kwhat           hard    nofile          10240


I noticed that the memory usage was excessively high for the number of tabs open so either these values need some tuning or they are working around an underlying issue.