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

10 second startup for emacs on system with 1GB ram Athlon64 3200. postgresql shared memory issues. vi ok immediate



Hi,

I use emacs routinely as my editor. 
(I like vi too...
I actually wrote my phd thesis using vi on a vax 11-750 over a 1200 baud modem  
(... maybe 300 baud ?) :) )

Emacs startup has gotten much slower once I changed some memory settings. No 
xserver memory issues as X is not running. Just plain emacs

I have just setup a new Debian Sarge server with postgresql, a Asus A8v 
motherboard with an Athlon64 3200 processor, debian kernel 2.6.8. I have 1GB 
of  RAM DDR400. 

In order to get postgresql the resources it needs for a big database and many 
connections,  I allocated memory resources for it. 
This involved setting 
shmmax to 425000000 from its debian default of
                      33554432.


I also set   the following parameters in the postgresql.conf file

shared_buffers = 48000
max_connections = 512
sort_mem = 4096 
effective_cache_size = 4000 
wal_buffers = 8 

Now emacs takes 10 seconds to start up. Vi starts immediately as usual. Can 
someone explain to me what is going on.

top
top - 17:49:12 up  1:38,  3 users,  load average: 0.00, 0.00, 0.00
Tasks:  83 total,   2 running,  80 sleeping,   0 stopped,   1 zombie
Cpu(s):  0.0% us,  0.0% sy,  0.0% ni, 100.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:    906736k total,   140896k used,   765840k free,    17768k buffers
Swap:  1951856k total,        0k used,  1951856k free,    69468k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      16   0  1512  524 1360 S  0.0  0.1   0:00.45 init
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    3 root       5 -10     0    0    0 S  0.0  0.0   0:03.08 events/0
    4 root      12 -10     0    0    0 S  0.0  0.0   0:00.00 khelper
    5 root      15 -10     0    0    0 S  0.0  0.0   0:00.00 kacpid
   38 root       5 -10     0    0    0 S  0.0  0.0   0:00.01 kblockd/0
   48 root      20   0     0    0    0 S  0.0  0.0   0:00.00 pdflush
   49 root      15   0     0    0    0 S  0.0  0.0   0:00.02 pdflush
   51 root       5 -10     0    0    0 S  0.0  0.0   0:00.00 aio/0
   50 root      25   0     0    0    0 S  0.0  0.0   0:00.00 kswapd0
  193 root      25   0     0    0    0 S  0.0  0.0   0:00.00 kseriod


Thanks,

Mitchell Laks




Reply to: