YJ Park's profileYJParkPhotosBlogListsMore ![]() | Help |
|
8/8/2006 Runing Postgresql in Ramfs for Great Performance in TestingAs a database server, postgresql make a lot efforts to make the data as secure as possible, but in some certain cases, we don't need these features, we just want it as fast as possible, e.g. in testing. When doing testing, postgresql will access disk to write the data and logs, cause a very big iowait. By running postgresql in ramfs, we can make it much faster.
Ramfs is just using ram to simulate a file system, it's in ram, so it's very fast, of course you need to have enough ram for that.
Here is the script I use to start a second postgresql server at a given port:
After the server start, need to do some setup:
Using it in nordicbet team:
the postgresql port support is in trunk now, you can just add these two lines to your local config:
After setting this, I can run the ftest 30% to 40% faster, I think it's pretty worth doing. |
|
|