Il giorno 02/apr/2015, alle ore 14:29, didier <did447@xxxxxxxxx> ha scritto: Hi, You’re referring to disk scheduler? I’ve tried to change it on T420 with no significant variations over performance. I’ve also tried different fsync options with no improvements. pg_test_fsync tells me that T420 disk iops are ~7 times faster than MacMini, vm.zone_reclaim_mode = 0 I’ve also set these options in /etc/sysctl.conf: kernel.shmmax=68719476736 kernel.shmall=16777216 vm.overcommit_memory=2 vm.overcommit_ratio=90 I’ll search the mailing list. For testing you can also use the mac mini config with the dell, at The same transaction took 106s on MacMini; 129s on T420 with my optimized configuration; 180s on T420 using MacMini configuration. Query plans for B_1 and B_2 queries with the two configurations on T420: T420 with optimal postgresql.conf Query B_1 [55999.649 ms + 0.639 ms] http://explain.depesz.com/s/LbM Query B_2 [95664.832 ms + 0.523 ms] http://explain.depesz.com/s/v06 T420 with MacMini postgresql.conf Query B_1 [51280.208ms + 0.699ms] http://explain.depesz.com/s/wlb Query B_2 [177278.205ms + 0.428ms] http://explain.depesz.com/s/rzr MacMini Query B_1 [56315.614 ms] http://explain.depesz.com/s/uZTx Query B_2 [44890.813 ms] http://explain.depesz.com/s/y7Dk Keep in mind that a psql query is still single thread so the mac andYes I know ;) With 128GB I try to maximize RAM usage, but it’s difficult to fully understand how to achieve this. Thank you again, Pietro |