how to python to use virtual memory?
Ho Yeung Lee
davidbenny2000 at gmail.com
Sat Jun 25 21:47:56 EDT 2016
what is the command or code to write to use virtual memory if i use extra
20 GB from hard disk as memory, means from 70GB memory to 90GB memory
and left 10GB for file?
Michael Torrie於 2016年6月25日星期六 UTC+8上午11時00分36秒寫道：
> On 06/24/2016 08:44 PM, Dennis Lee Bieber wrote:
> > I don't know how Linux handles swap disk -- Windows normally sets the
> > swap space to ~2X physical memory (for small RAM -- my 12GB system has a
> > 12GB swap and suggests 18GB).
> Linux typically uses a user-set swap partition. The old rule of thumb
> was to make the swap partition 2x the size of RAM. Now, though, for most
> installations with lots of RAM, 1:1 is often used.
> However, if the OP's program really requires 70 to 100 GB of space,
> relying on the virtual memory system to do this (64-bit only of course)
> is a mistake. The system will simply thrash itself to death on any OS
> at that level of over-commit. If he has that much data, he needs to
> employ techniques for working with the data directly on disk himself. I
> highly doubt these big data sets that large companies work rely simply
> on the OS to manage it!
More information about the Python-list