在 2006-07-26三的 16:48 +0200,Sandy Drobic写道:
Zhang Weiwu wrote:
在 2006-07-26三的 11:53 +0200,Sandy Drobic写道:
张韡武 wrote:
在 2006-07-26三的 15:34 +0800,张韡武写道:
Hello. Sorry if OT, I think this perhaps should go to suse-admin list if there is one.
The X terminal server has 8 users, load average is #uptime 3:08pm up 5:56, 14 users, load average: 3.65, 3.34, 2.73 (14 users because gnome-terminal users are counted too)
CPU: Intel(R) Celeron(R) CPU 2.40GHz => OS is SuSE 10.1 Harddisk is 40GB 7200RPM with 2MB cache, 1GB DDR memory is installed, averagely 758MB swap space is used.
Current biggest problem is the "stun" effect, that is if one user use Firefox to load a big web page (example: a purely text web page of 500KB), all users consoles are frozen, that is, click have no effect, keyboard do not respond, everything looks as if the machine is dead, the X terminals come back alive again when the 500KB webpage is loaded.
The purpose of upgrade is to remove stun effect (that's my way of calling it) and to speed up application launch to around 250% faster, because the two are where complaints from. Users complain their X terminal sometimes stun for 10 seconds, totally unexpected. Further launching jedit takes 20 to 40 seconds, they want it loaded in 10 seconds. At least a Hyper-Threading CPU, but better Dual Core CPU or real dual CPU will solve most of your terminal freezing.
I am not an expert on linux tuning, but it should be possible to configure max cpu time and priority for users in /etc/security/limits.conf. This must be enabled in /etc/pam.d/ IMHO.
Thank you a lot for the suggestions (especially the possibility to set limit for users). I decide to go hyper-threading way. An upgrade to Dual Core CPU or SMP both request replacing all of: * motherboard (current mother board do not support any of Dualcore CPU or SMP) * memory bank (old DDR cannot be used) * CPU (old CPU cannot be used because there are no known SMP board can use the 478-pin Celeron This is way too expensive for the budget, thus I decide tomorrow go to buy Pentium 4 3.2E hyper-threading CPU to replace the existing one, further expend memory to 2GB.
More RAM will seldom hurt, but if the budget is tight I would check first if lack of memory is really a problem. What does free say about available memory?
I am afraid it should be a problem, averagely 768MB (of total 1GB) swap space is being used. After I bought another 1GB memory, system become much faster.
Also, the price of dual core Athlon 64 X2 just dropped drastically, so that might be a very good alternative.
Here in Europe hardware is cheap compared to wasted time by expensive employees, so we are encouraged to solve delays quickly.
I now got an 3.0E HT CPU and upgraded to 2GB memory, the improvement on general speed, on removing 'stun' effect and on application is dramatic, CPU usage never goes to 100% as easily as it did before. I never expect we can get this much with 1480CNY (148 Euros). Perhaps that is also because of the new kernel, old kernel was not SMP, new kernel is P4-optimized, SMP and with SHT support.
Sandy
-- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
-- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005)