Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jun 2005 16:58:35 -0400
From:      Sven Willenberger <sven@dmv.com>
To:        Charles Swiger <cswiger@mac.com>
Cc:        Vivek Khera <vivek@khera.org>, stable@freebsd.org, postgres general <pgsql-general@postgresql.org>
Subject:   Re: [GENERAL] PostgreSQL's vacuumdb fails to allocate memory for non-root users
Message-ID:  <1120078715.19598.79.camel@lanshark.dmv.com>
In-Reply-To: <51C9ABA2-20B8-4DE8-B647-A26A168A78FC@mac.com>
References:  <1120050088.19603.7.camel@lanshark.dmv.com> <58067976-00C6-4380-90DF-F448D9008C81@khera.org> <1120075946.19603.68.camel@lanshark.dmv.com> <51C9ABA2-20B8-4DE8-B647-A26A168A78FC@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2005-06-29 at 16:40 -0400, Charles Swiger wrote:
> On Jun 29, 2005, at 4:12 PM, Sven Willenberger wrote:
> [ ... ]
> > Something I have noticed,
> > when the memory error occurs during the psql session (after a failed
> > vacuumdb attempt) the memory stays at 600+MB in top (under size) until
> > the psql session is closed -- that may just be the way top reports it
> > though.
> 
> Double-check your system limits via "ulimit -a" or "ulimit -aH".  By  
> default, FreeBSD will probably restrict the maximum data size of the  
> process to 512MB, which may be what you are running into.  You can  
> rebuild the kernel to permit a larger data size, or else tweak /boot/ 
> loader.conf:
> 
>      echo 'kern.maxdsiz="1024M"' >> /boot/loader.conf
> 

:>ulimit -a
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  1048576
stack size              (kbytes, -s)  65536
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  5547
open files                      (-n)  11095
virtual mem size        (kbytes, -v)  unlimited
sbsize                   (bytes, -b)  unlimited
:> cat /boot/loader.conf
kern.maxdsiz="1073741824"
kern.dfldsiz="891289600"

and if I don't run vacuumdb at all, but rather connect to the backend
via psql and run vacuum, it works ok with full memory allocation. Still
testing RAM to see if the issue is physical.

Sven





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1120078715.19598.79.camel>