December 17, 2006

Hah
I just finished replacing the SQL-based page caching in Minx with memcached. Which was actually dead easy, and works, and speeds things up not at all... Though memcached is putting about one-third the load on the server as MySQL in the same test.
Currently I'm seeing a time per page of 7.0 ms and 87 pages per second. The system load is about 60% Python, 2.3% memcached, 1.1% MySQL, and 33% idle. I can't seem to push it much higher than that with my current test framework.
Which tells me that:
1. It's plenty fast.
2. memcached uses no CPU, in the broad scheme of things. The live deployment will have multiple instances of Minx per server, and load-balance across them as well as across the servers themselves. And the servers will be about 3.5 times as fast (comparing the Xeon 3060 to the Athlon XP 2800+). Multiply it out and I'll get, hmm, about 465 pages per second. As for the 7ms of overhead, well, even cached pages get passed through the template engine (because there are template tags that take effect after the page is generated) and it still has to check your login against the database (to see if you have any preference settings that would require a custom page to be presented) and so on. I'll try to keep the overhead down, of course, but that's not too terrible, considering. Now I'll leave it to soak. Python is using 85MB at the moment (with 50 threads), but seems to be creeping up a bit. One odd thing with CherryPy is that the virtual space is much larger - currently 650MB. Which limits me to about 300 threads total per instance. The other thing I noticed is that memcached was developed by the people at LiveJournal. LiveJournal has since been acquired by SixApart. SixApart are the Movable Type people. I originally started writing Minx just so I could get off Movable Type. Well, I was amused. Update: Hmm. 96MB now. Admittedly, it reached 70MB with 10 threads after a long soak, and I was expecting it to be on the order of 350MB this time. As long as it stops growing eventually. Update: 121MB and 8.2ms per page at the 130,000 page mark. That smells like a leak, but a pretty small one.
2. memcached uses no CPU, in the broad scheme of things. The live deployment will have multiple instances of Minx per server, and load-balance across them as well as across the servers themselves. And the servers will be about 3.5 times as fast (comparing the Xeon 3060 to the Athlon XP 2800+). Multiply it out and I'll get, hmm, about 465 pages per second. As for the 7ms of overhead, well, even cached pages get passed through the template engine (because there are template tags that take effect after the page is generated) and it still has to check your login against the database (to see if you have any preference settings that would require a custom page to be presented) and so on. I'll try to keep the overhead down, of course, but that's not too terrible, considering. Now I'll leave it to soak. Python is using 85MB at the moment (with 50 threads), but seems to be creeping up a bit. One odd thing with CherryPy is that the virtual space is much larger - currently 650MB. Which limits me to about 300 threads total per instance. The other thing I noticed is that memcached was developed by the people at LiveJournal. LiveJournal has since been acquired by SixApart. SixApart are the Movable Type people. I originally started writing Minx just so I could get off Movable Type. Well, I was amused. Update: Hmm. 96MB now. Admittedly, it reached 70MB with 10 threads after a long soak, and I was expecting it to be on the order of 350MB this time. As long as it stops growing eventually. Update: 121MB and 8.2ms per page at the 130,000 page mark. That smells like a leak, but a pretty small one.
Posted by: Pixy Misa at 07:42 PM | Comments (39) | Add Comment | Trackbacks (Suck)
1
cheap@viagra.com
Posted by: viagra cheap at August 14, 2007 10:56 AM (43um8)
2
cheap@cialis.com
Posted by: generic cialis at August 14, 2007 03:47 PM (jSXdf)
3
cheap@levitra.com
Posted by: buy levitra at August 15, 2007 03:13 AM (rwZK4)
4
sale@mp3.com
Posted by: Eagles download at September 13, 2007 01:46 PM (iYsSK)
5
Shoes are something which reflects your taste and character. Being trendy is not always about wearing expensive shoes. The real idea behind style is choosing the quality stuffs without compromising the comforts. christian louboutin sale , is a name that does not need any introduction. It is one of the most leading brands of designer shoes in market. It has a vast spectrum of varieties with different attractive colors and designs which will make your mind blown. This is the name where the trends meet the comfort. However, the high prices sometimes make it quite difficult for most of the people to go for such expensive brands. Fashion christian louboutin sale , Replica solves this high cost problem without compromising your needs.It is a very important issue to pay attention towards the comfort level when it comes to footwear. It is seen that improper inclination of the heel may cause health problems including eyesight problems, backache and many more. Thus opting for the right kind of product is very much essential. Women christian louboutin sale , Replica Shoes take care of each and every such minute detail during the manufacture. They assure you all the features of the original brand along with high quality product.Shoes christian louboutin sale are an exact replica of the original christian louboutin sale footwear. The red sole signature is also incorporated in order to maintain the authentic look. It is gaining popularity though out the entire globe due to its assured quality and a wide exciting range of varieties. However, one must be very careful while going for such replica purchase. One can refer the help from the different online stores selling such replica products. Online catalogues are also available for help. With all the designs including classy, contemporary or a combination of both you can now add an edgy look to your style. So, what are you waiting for, go and grab yours today!Christian Louboutin Sale
Louboutin Sale
manolo blahnik shoes
Christian Louboutin Sale
Jimmy Choo outlet
All of them sell online at reasonable price.
Louboutin Sale
manolo blahnik shoes
Christian Louboutin Sale
Jimmy Choo outlet
All of them sell online at reasonable price.
Posted by: shoes outlet store at July 12, 2011 11:23 AM (wiPYh)
Processing 0.01, elapsed 0.0119 seconds.
16 queries taking 0.0089 seconds, 27 records returned.
Page size 12 kb.
Powered by Minx 0.8 beta.