View previous topic :: View next topic |
Author |
Message |
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Mon Apr 21, 2014 11:45 pm Post subject: consolekit allocates 1/2 VIRT of all mem, seamonkey fails |
|
|
Hi,
now I understand why everyone is ranting about the *kit stuff:
is there a good reason why policykit allocates HALF of memory ?
Quote: | ps axuw | grep console
root 5391 0.0 0.0 4187060 3596 ? Ssl 01:23 0:00 /usr/sbin/console-kit-daemon
root 8025 0.0 0.0 29708 988 pts/0 R+ 01:33 0:00 grep --color=auto console
|
that's 4 GB out of 8 GB (!) - and that right from the start
for weeks I've been trying to compile seamonkey and it continuously showed "can't allocate" errors at various stages during configuration and/or compilation ( e.g. seamonkey config/autoconf.mk: *** "Cannot allocate memory. Stop." )
only by killing and closing off everything else and going to the bare system (killing console-kit-daemon seems to have been the crucial step, get it running leads again to failure of the compilation attempt )
it successfully compiled - I even had to choose conservative CFLAGS and LDFLAGS
so it in part is an issue with seamonkey but when running a full desktop system - even firefox fails to compile also showing the "cannot allocate memory" message
How can I limit virtual memory size of consolekit ?
downgrade ? upgrade ?
modify the source ? any configuration file ?
Many thanks in advance for your help
references:
https://www.centos.org/forums/viewtopic.php?t=4979
https://bugzilla.redhat.com/show_bug.cgi?id=473547 _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
s4e8 Guru
Joined: 29 Jul 2006 Posts: 311
|
Posted: Tue Apr 22, 2014 1:58 am Post subject: |
|
|
set /proc/sys/vm/overcommit_memory to 1. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Apr 22, 2014 4:24 pm Post subject: |
|
|
What does `cat /proc/$pid/maps` look like? |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Tue Apr 22, 2014 4:44 pm Post subject: |
|
|
s4e8 wrote: | set /proc/sys/vm/overcommit_memory to 1. |
already tried that - it only allowed compilation to go a little bit further then showed the same error message
Ant P. wrote: | What does `cat /proc/$pid/maps` look like? |
doesn't exist ?
Quote: | cat /proc/$pid/maps
cat: /proc//maps: No such file or directory |
Quote: | `cat /proc/$pid/maps`
cat: /proc//maps: No such file or directory |
kernel is 3.14-based
like I wrote above: removing everything unnecessary from memory allowed it to compile, so it's rather annoying having to go through all that while compiling firefox & seamonkey (haven't tried thunderbird yet, but should be similar behavior)
even swapoff of the swap portion in memory (zram device of 8 GB - I know a little overhead, will adjust that later) and removing any /var/tmp folder in memory (zram, 4 GB) - didn't make a change
/tmp is 4 GB tmpfs in memory; zswap is enabled (this allows the system to run much smoother and better than without - didn't pose a problem in the past, nothing obvious changed)
total Memory is 8 GB of RAM
this also happened on 3.13-based kernel
thanks so far _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Apr 22, 2014 4:53 pm Post subject: |
|
|
Try replacing the "$pid" in that example code with the actual PID of consolekit. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6095 Location: Dallas area
|
Posted: Tue Apr 22, 2014 5:05 pm Post subject: |
|
|
I would boot into console mode or single user mode (after downloading source) and do the compilation, then go back to graphics mode.
Quote: | /tmp is 4 GB tmpfs |
Also this will bite you once /tmp starts getting used, better to not use it for the compile. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Tue Apr 22, 2014 6:51 pm Post subject: |
|
|
Ant P. wrote: | Try replacing the "$pid" in that example code with the actual PID of consolekit. |
/facepalm
sorry
Quote: | pidof console-kit-daemon
10026
|
http://pastebin.com/cWBHD1w0 <-- output probably too large to post here
Anon-E-moose wrote: | I would boot into console mode or single user mode (after downloading source) and do the compilation, then go back to graphics mode.
Quote: | /tmp is 4 GB tmpfs |
Also this will bite you once /tmp starts getting used, better to not use it for the compile. |
that's what I did - which is quite different from compiling it in graphics, usual mode - but if it works - why not
yes, it can get quite ugly when /tmp is completely full - the system becomes almost unresponsive
therefore /var/tmp (and /var/tmp/portage is set to the compilation directory) is on a separate, zram drive _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
|