[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Moving /tmp to tmpfs makes it useless

Salvo Tomaselli <tiposchi@tiscali.it> writes:

>> Because paging out a couple Gigabytes is veeeeeery different from
>> writing a couple Gigabytes to disk, of course.
> Yes because writing that on disk will only block the thread performing the 
> write, not every thread that tries to allocate memory.

Wrong. The thread doing the write will just write to cache and not block
at all. That is until you run out of cache. And then any thread that
needs to allocate memory will block until such a time as some dirty
memory is written.

Now with multiple cores it becomes a bit more complex since then you
have seperate queues. So only one core might block anything needing
memory on that core.

If anyone wants to experience that then write out some GB of data over
NFS. After a short while processes will hang while others keep running.


Reply to: