kqueue examples?

2006-10-22 Thread Adrian Chadd
Hi all, I'm currently fiddling with writing a 'simple' TCP proxy for FreeBSD which uses kqueue to handle IO. I've been looking for examples of kqueue code which uses all the cute features of kqueue to "optimise" things, eg "hinting" at send/recv size, whether EOF has been seen, setting the buffer

Re: Improving performance of postgresql

2006-10-22 Thread Ivan Voras
vittorio wrote: > Now I would like to know if for a postgresql server there are settings more > ** > freebsd specif ic ** to improve performance. You can start from here: http://wiki.freebsd.org/Performance, in particular read the MySQL page but ignore all points regarding threading and threads

Improving performance of postgresql

2006-10-22 Thread vittorio
Under freebsd 6.1 on a pentium 4 with 256 MB I compiled and installed a postgresql (now 8.0.8) server which has been running wonderfully. I tailored the conf files to tune the server with my hardware according to the many suggestions I read in the net which are OS-independent that is that appl