ubuntu shmmax postgres

ตรวจสอบค่า shmmax
$ cat /proc/sys/kernel/shmmax

กำหนดค่าชั่วคราว
$ sudo sysctl -w kernel.shmmax=256000000

เก็บค่าไว้ใน config
$ sudo vi /etc/sysctl.conf
ใส่
kernel.shmmax=256000000

sudo cp /etc/sysctl.conf /etc/sysctl.conf-orig &&
sudo sh -c 'echo "#\n# For postgres\nkernel.shmmax = 256000000" >> /etc/sysctl.conf' &&
sudo sysctl -p &&
sudo /etc/init.d/postgresql-8.4 start

http://dancingpenguinsoflight.com/2010/03/dealing-with-could-not-create-shared-memory-segment-from-postgres-on-ubuntu/

แก้ไขปัญหา Ubuntu 10.10 64-bit kernel 2.6.35 ลง Vmware Workstation 7

cd /tmp
tar xvf /usr/lib/vmware/modules/source/vmmon.tar -C /tmp
perl -pi -e 's,_range,,' vmmon-only/linux/iommu.c
sudo tar cvf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only

sudo vi /etc/vmware/config
แก้ไข VSOCK_CONFED = "no"

sudo service vmware stop
sudo service vmware start

vmplayer




rrfx.net: VMware vmmon compilation issues on 64-bit kernel 2.6.35