Re: initdb fails on Centos 5.4 x64 - Mailing list pgsql-general

From valentin.hocher@kabelbw.de (Valentin Hocher)
Subject Re: initdb fails on Centos 5.4 x64
Date
Msg-id 1273524006.4be86f26b924d@kabelbw.de
Whole thread Raw
In response to initdb fails on Centos 5.4 x64  (valentin.hocher@kabelbw.de (Valentin Hocher))
Responses Re: initdb fails on Centos 5.4 x64  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> > The solution is very simple and can be done in the cPanel configuration, just disabled "Shell Fork Bomb Protection"
inthe security center. That's all. The ulimit restrictions are removed! 
>
> Huh, that's interesting.  With a name like that, I'd have thought it
> would set limits on number of processes, not virtual memory size.
> What ulimit settings did it change exactly?


"Shell Fork Bomb Protection"
Description:
Fork Bomb Protection will prevent users with terminal access (ssh/telnet) from using up all the resources on the
server.Unchecked resource allocation can potentially lead to a server crash. 
It is recommended that this protection be enabled for servers providing terminal access.


The only thing I discoverd if enabled is the following entry in /etc/profile (if disabled, there is no ulimit set)


#cPanel Added Limit Protections -- BEGIN

#unlimit so we can run the whoami
ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null

LIMITUSER=$USER
if [ -e "/usr/bin/whoami" ]; then
        LIMITUSER=`/usr/bin/whoami`
fi
if [ "$LIMITUSER" != "root" ]; then
        ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null
else
        ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
fi
#cPanel Added Limit Protections -- END


pgsql-general by date:

Previous
From: "justin@magwerks.com"
Date:
Subject: files stored in the database
Next
From: Andy Colson
Date:
Subject: Re: How to do pg_dump + pg_restore within Perl script?