2

This is a performance question:

My machine always runs Ubuntu as the main, and as I login, it always starts up a Windows VM and firefox? If I install memcached, will it improve my performance?

I notice that the cpu is always pegged by the windows VM, but for hard drive performance will memcached work? (Are the default settings enough or do I need to configure memcached specifically for the VM?

2 Answers 2

6

No, memcached is not good for gaming or virtual machines.

Memcached is a daemon (a program that stays in the background and responds to requests) allowing application developers to easily implement memory storage that is shared between separate processes, especially in web applications.

Traditionally, web applications run every individual web request in a separate environment that is initialised at the start of the request and destroyed at the end, and/or in multiple separate processes that share no memory with each other. This allows no "objects" or other variables stored in memory to persist between separate requests. This is true, for example, of PHP.

Memcached is a process that web applications can connect to and use for storing persistent variables, values and objects in memory. The stored data can then persist between different web requests.

This is immensely useful when each web request needs data from a relatively slow storage mechanism such as a database server accessed over a network socket. Instead of each web request causing a new request to the database server, the application may choose to "cache" some of these requests in a memcached instance so that future requests can just access this.

Memcached also has advanced features allowing these shared memory objects to be distributed across multiple servers, and the like.

Memcached needs to be installed separately to the web server (eg Apache, nginx) and application server (eg PHP) for web applications that require it.

0
2

Generally "memcached" is a technology that improve web server's performance. if you do not run a web server, I think it's not your concern.

if you mean memcached is a RAM, I think it is helpful. furthermore, I would like to say use a SSD instead HDD.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .