Am 01.11.2012 21:40, schrieb Marcos
Ortiz:
Regards, Petr.Just some thoughts (interested in this, once seen a Sybase ASE come close to a halt when we threw a huge lot of SHM at it...). 8 cores, so probably on 2 sockets? What CPU generation? Both explain outputs show an amount of "read" buffers. Did you warm the caches before testing? Maybe you're hitting a NUMA issue there? If those reads come from the OS' cache, the scheduler might decide to move your process to a different core (that can access the cache better), then moves it back when you access the SHM segment more (the ~4GB get allocated at startup, so probably "close" to the CPU the postmaster ist running on). A migration to a different cacheline is very expensive. The temp reads/writes (i.e., the OS cache for the temp files) would probably be allocated close to the CPU requesting the temp file. Just groping about in the dark though... but the iMac is obviously not affected by this, with one socket/memory channel/cache line. Might be worth to - manually pin (with taskset) the session you test this in to a particular CPU (once on each socket) to see if the times change - try reducing work_mem in the session you're testing in (so you have large SHM, but small work mem) Cheers, -- Gunnar "Nick" Bluth RHCE/SCLA Mobil +49 172 8853339 Email: gunnar.bluth@xxxxxxxxxxx __________________________________________________________________________ In 1984 mainstream users were choosing VMS over UNIX. Ten years later they are choosing Windows over UNIX. What part of that message aren't you getting? - Tom Payne |