NFS- With PHP Writes

Mar 6, 2007

I tried setting up my web server with the user's home directories as a NFS and everything seemed to be working except for one thing I found. When I used php write which I have a couple scripts that do, it can't use fopen with the option "w" which means to trunicate the length to 0 and point at the beginning of the file.

It allows me to use "a" which just writes at the bottom of the file. This is weird because when I login to shell I can delete the files, edit the files, and make files.

It gives me this error....[function.fopen]: failed to open stream: Operation not permitted

httpd 2.0.59, php 4.4.6, userspace nfs, using no_root_squash,sync,no_all_squash,rw in the exports.

View 0 Replies


ADVERTISEMENT

Disk Writes Extremely Slow On SATA RAID

Jan 10, 2008

I'm running into a problem with a relatively new (2 months old) server. I have just a few accounts on it, and I'm already noticing unusual loads, for the... load. After some benchmarking with bonnie++ (and plain old "dd") there is clearly a problem.

Version 1.03b ------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
SERVER NAME 2G 9096 16 7725 2 2543 0 20609 32 621627 55 +++++ +++

Isn't a write-speed over 7MB/s reasonable to expect? Also look at the low CPU times...

Anyway running the same test on a similar but older AND busier server showed much better results than this. In fact dd'ing a 1GB file from /dev/zero "finished" in about 10 seconds but then pegged the server at 99% iowait (wa) for a full three minutes (until done being written from cache I assume), bringing load to 15.00

That's all the info I have so far... the data center just replaced the card (which gave no errors) with no effect. Running these benchmark tests is about the extend of my hardware experience.

View 8 Replies View Related

What Kind Of Harddrive Read And Writes Speeds Should Be Expected

May 15, 2007

I have a windows 2003 VPS and I'm not satisfied with the HD I/O speed, and before I mention what speeds I am getting I just want to see what people say should be plausible. I want to know if I am thinking I should get more out of the VPS then I really should.

Anyway, I used this program from ATTO to benchmark:
short-media.com/download.php?d=108
Called ATTO Disk Benchmark

If anyone is willing, run it on your VPS and post a screenshot. It's a standalone .exe, no install needed.

View 12 Replies View Related

Mysql Delayed Writes Performance Boost, Worth The Risk

Jul 19, 2007

During my poking around performance tips I found the DELAY_KEY_WRITE option (and innodb_flush_log_at_trx_commit = 0 for innodb)

which supposedly for mysql will disable the immediate disk flush for every transaction written and instead update only once every second at most?

One thing I've never had to restart on my vps is mysql, it's been great. So is this safe to turn on? Am I risking corruption? Will the performance gain be worth it with only a 16M cache?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved