Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

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.

share|improve this answer
    
Thank you so much everyone –  Bran Apr 11 at 1:40

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.