Ticket #3 (new enhancement)

Opened 3 years ago

Last modified 4 days ago

Feature 'disk only' cache

Reported by: ingo.theiss@i-matrixx.de Assigned to: somebody
Priority: major Milestone:
Component: eAccelerator Version:
Keywords: eaccelerator cache compression disk Cc:

Description

We are are using eAccelerator with PHP in 'FastCGI' mode. Since eAccelerator is creating a shared memory segment for every PHP process I would like to request a change/feature to have a 'disk_only' cache. If eAccelerator would use a 'disk_only' cache the user has the possibility to put the cache back to RAM by using tmpfs.

I think this would help a lot of people and especially large hosting companys (which often use PHP FastCGI).

Change History

03/06/06 14:07:31 changed by anonymous

FastCGI works, you only have to make sure you have only 1 parent process which forks childeren.

03/06/06 14:24:30 changed by anonymous

Yes thats true. FastCGI is working and I could ensure that only 1 parent process is forking the children.

We are a small hosting provider and for security reasons every user has it´s own php.ini. That way it´s impossible to have only 1 parent process...

Please see a little history about that topic at http://sourceforge.net/forum/message.php?msg_id=3287594

09/18/06 04:52:50 changed by TheMaTrIx

I'm looking for the same thing to become available asap for use on Windows/IIS with webfarming and full isolation mode enabled.

Every site is spawned into its own application pool under its own login and every site can have worker processes set to it.

We set these child processes per domain depending on the traffic they are getting.

If eAccelerator were able to do a complete disk only mode of operation, we could setup a ramdrive and use that for the disk_only cache.

SHM is causing problems whenever you get some serious load on a windows server, even if you only use 1 worker process for the entire server. After some time it'll always start showing memory access violations.

Disk Only cache is imho a higher then critical priority which, when available, would put eAccelerator miles ahead of the pack and make eAccelerator the only PHP Cacher that works right for busy Windows/IIS servers.

(follow-up: ↓ 5 ) 11/08/06 13:50:37 changed by bart

  • owner changed from hans to somebody.
  • component changed from Optimizer to eAccelerator.

I'm working on a new improved cache for eAccelerator, it should be possible to use disk-only caching for scripts too. I hope to get it in 0.9.6 but I'm not sure.

(in reply to: ↑ 4 ) 10/04/08 13:08:57 changed by tuxolo

  • keywords set to eaccelerator cache compression disk.
  • priority changed from minor to major.

I too vote for this feature request, since right now fastcgi php is very common. I use a temporary path in tmpfs, so I think compression on cache files (which seems to be very effective) should be applied too.