[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postgresql wont restart. Can I clear shared memmory segments without rebooting?

Mitchell Laks put forth on 1/5/2010 1:34 AM:

> While  I can continue to do this, but it goes against the grain. Is there some system command to  free the
> shared memory so that postgresql will start again without rebooting?

Try these:

To free pagecache:

# echo 1 > /proc/sys/vm/drop_caches

To free dentries and inodes:

# echo 2 > /proc/sys/vm/drop_caches

To free pagecache, dentries and inodes:

echo 3 > /proc/sys/vm/drop_caches


Reply to: