S
S
Sergey Pribylskiy2014-03-26 13:49:45
Nginx
Sergey Pribylskiy, 2014-03-26 13:49:45

How to speed up a web server on a flash drive?

Good afternoon!
There is an internal web application written in Yii (php+mysql+apache). When working from a hard disk (openserver) - everything works quickly. The task was set so that the data files were not on the computer, but all this worked from a flash drive.
The openserver was replaced with nginx 1.4.7 + php 5.3.x, and the mysql database was replaced with sqlite3. The code has been rewritten. From the hard drive, everything began to work even faster.
When transferring the entire configuration to a flash drive and running the web server from the flash drive, the application itself runs very slowly. Affects the speed of reading / writing to a flash drive.
What can be tips to speed up the work of such a system?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Morozov, 2014-03-26
@metamorph

Move everything related to disk I / O (sessions, caches, what else?) To memory. Disable logging to disk.

P
Puma Thailand, 2014-03-26
@opium

to buy a fast USB flash drive, just for flash drives, the difference in performance by several times gives a difference in price by several times.

A
Anton Kuzmichev, 2014-03-26
@Assargin

If the task is to work reasonably fast on removable media (and not just on a flash drive), then maybe try an external ssd drive?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question