[英]Besides caching, how can I use more memory rather than cpu time on a LAMP server?
My site is rough on cpu usage, but I have plenty of memory (and hdd space) I could be using. 我的网站对cpu的使用情况很粗糙,但是我有足够的内存(和硬盘空间)可以使用。 The site is sort of a game with lots of db updates and object manipulations.
该站点有点像带有大量数据库更新和对象操作的游戏。 Generally speaking, is there any other way to share the load after having cached as much as I think I can?
一般来说,在缓存了我认为可以达到的最大数量之后,还有其他方法可以共享负载吗?
Thanks 谢谢
There is no general advice I, am afraid. 恐怕没有一般性建议。
Can't you at least roughly profile your application, to determine certain bottlenecks - if it's db updates, or object manipulations? 您是否至少不能粗略地概述您的应用程序,以确定某些瓶颈-是数据库更新还是对象操作? Or even some other, obscure matter?
甚至还有其他晦涩的问题?
If your filesystem is a cheap one (not SAS), and there are many disk I/O, it may eat up your CPU easily. 如果您的文件系统是便宜的文件系统(而不是SAS),并且有很多磁盘I / O,则可能会很容易耗尽CPU。 You have to optimize disk writes, but I am afraid again there is no common way.
您必须优化磁盘写入,但是恐怕还是没有通用的方法。 Try to reduce number of indexes.
尝试减少索引数。 Cache your database in memory, when applicable.
如果适用,将数据库缓存在内存中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.