![]() |
#1
|
||||
|
||||
Virtual Memory
I was talking to a friend last night, and he told me I needs a swap partition for Virtual Memory on OSX.
My drives are full, and I don't want to mess with re-partitioning them. I know (thru my friend) I can create a fixed size file, or a Zero Byte Length file and let it grow/shrink as necessary. How do I do these? Tiger: G4 PowerPC Dual Core 400 Mhz w/640 MB RAM 20 Gig ATA HD all HFS+ Internal DVD Access to Server True Tiger Leopard: Acer Intel Atom Dual [email protected] w/1 Gig Ram 160GB HD-133GB NTFS, 15.68GB HFS+ SD slot No Net access iDeneb 1.6 Lite Compaq SR5710F [email protected] w/3 Gigs Ram 80 Gig ATA HD (NTFS - Vista) 200 Gig ATA HD (NTFS-Data) Access to Server Server: Compaq 1.8 Single Core Windows Server 2003 Enterprise Edition ~2 TB online.... |
#2
|
||||
|
||||
A swap partition like in Linux or AmigaOS 4.1 isn't neccessary in OS X, it handles is virtual memory in a different way - but don't ask me how. Windows wants about the 1.5x so much virtual memory as real memory, for this a file called C:/pagefile.sys is used. But I don't know if this is effective - I'm running XP in Parallels virtual memory disabled and it works fine.
You should leave enough free space on your boot partition. That's why I'm using multiple harddisks, the boot partition is only for applications and system data, including virtual memory. It's also safer, if you storing your personal data on another harddisk it is possible to reinstall your system without big data loss. If your board doesn't have enough harddisk connectors, buy a small SATA controller card with the SiliconImage SiI3112 chip, this one is supported by MacOS X. 2 Opteron systems: OSx86 10.5.8, Andy's 9.8.0 kernel, Asus A8N-SLI Premium, Opteron 185 o'clocked @ 2 x 2,95 GHz (2nd system 2.6 GHz), ATI Radeon HD2600XT 256MB Dual-Monitor 2x HP L2035, 4 GB RAM, Griffin FireWave as main audio device, Marvell + nForce LAN, Asus U3S6 USB3/SATA6 card, 5,5 TB harddisk, Firewire 800 card, Apple Remote + eHome IR receiver, 2x Wacom serial graphics tablet, Canon Pixma iP4700, Logitech Internet Navigator wireless keyboard/mouse combination. My Audio stuff: M-Audio Transit USB (default audio), M-Audio ProFire 610, M-Audio ProFire Lightbridge (34 channels) using Creamware A16 ADAT converter • MIDI: M-Audio Midiman 4x MIDI interface • Behringer Audio Mixers: Xenyx 1002, Xenyx 1002FX, Xenyx 1202FX, Eurorack UB1002FX, Eurorack MX1804FX, Eurorack MX262A • FX devices: Lexicon MPX100 DSP, Behringer DSP-1000 Virtualizer, Behringer MiniFEX 800 DSP, Behringer Multicom Pro MDX4400 compressor • RETRO: MSSIAH midi/sequencer/synthesizer cardridge for the C64 (Dual-SID), Steinberg M.S.I. MIDI Interface for C64 |
#3
|
||||
|
||||
To follow on from Naquaada's post, though not needed by the operating system itself, the ability to specify an external scratch disk is sometimes built in to certain memory intensive applications. Off the top of my head, Photoshop and Final Cut Pro both offer this feature.
![]() Mac OS X 10.6.4 Retail || Intel Core2 Duo E8200 2.66GHz || Gigabyte G31M-ES2L || GeForce 6600 GT 128MB || Realtek ALC883 Audio || Realtek RTL8169 LAN || Samsung SpinPoint F1 1TB HD || Sony Dual Layer IDE DVD RW DW-D22A || Apple Aluminium Keyboard || Mighty Mouse MacBook Pro || 2.4Ghz Core 2 Duo || 200Gb HD || 2Gb Ram || NVIDIA GeForce 8600M GT iPhone 4 || 16Gb |
#4
|
||||
|
||||
What do you mean with 'scratch disk' ? I have in some applications f.e. Amadeus Pro, CloneDVD 2, Logic and others an option to use a drive for temporary data. Did you mean something like this?
You can take a look in the Activity Monitor in the Utilities folder, there you can see which program needs how much real and virtual memory. I have Activity Monitor always running and automatically started at login, using 'Show CPU history' in the Dock. So you can always see what your cpu's are doing and you can use Activity Monitor as comfortable Task Manager. 2 Opteron systems: OSx86 10.5.8, Andy's 9.8.0 kernel, Asus A8N-SLI Premium, Opteron 185 o'clocked @ 2 x 2,95 GHz (2nd system 2.6 GHz), ATI Radeon HD2600XT 256MB Dual-Monitor 2x HP L2035, 4 GB RAM, Griffin FireWave as main audio device, Marvell + nForce LAN, Asus U3S6 USB3/SATA6 card, 5,5 TB harddisk, Firewire 800 card, Apple Remote + eHome IR receiver, 2x Wacom serial graphics tablet, Canon Pixma iP4700, Logitech Internet Navigator wireless keyboard/mouse combination. My Audio stuff: M-Audio Transit USB (default audio), M-Audio ProFire 610, M-Audio ProFire Lightbridge (34 channels) using Creamware A16 ADAT converter • MIDI: M-Audio Midiman 4x MIDI interface • Behringer Audio Mixers: Xenyx 1002, Xenyx 1002FX, Xenyx 1202FX, Eurorack UB1002FX, Eurorack MX1804FX, Eurorack MX262A • FX devices: Lexicon MPX100 DSP, Behringer DSP-1000 Virtualizer, Behringer MiniFEX 800 DSP, Behringer Multicom Pro MDX4400 compressor • RETRO: MSSIAH midi/sequencer/synthesizer cardridge for the C64 (Dual-SID), Steinberg M.S.I. MIDI Interface for C64 Last edited by naquaada; 05-09-2009 at 01:15 PM. |
#5
|
||||
|
||||
Quote:
"Scratch space is commonly used in graphic design programs, such as Adobe Photoshop. It is used when the program needs more memory, and the amount of available system RAM is insufficient. A common error in that program is "scratch disks full", which occurs when one has left the scratch disks configured to the default setting, being the boot drive." Mac OS X 10.6.4 Retail || Intel Core2 Duo E8200 2.66GHz || Gigabyte G31M-ES2L || GeForce 6600 GT 128MB || Realtek ALC883 Audio || Realtek RTL8169 LAN || Samsung SpinPoint F1 1TB HD || Sony Dual Layer IDE DVD RW DW-D22A || Apple Aluminium Keyboard || Mighty Mouse MacBook Pro || 2.4Ghz Core 2 Duo || 200Gb HD || 2Gb Ram || NVIDIA GeForce 8600M GT iPhone 4 || 16Gb |
#6
|
||||
|
||||
Never heard the expression 'Scratch Space'... or even a german equivalent witch would be 'Kratzplatz' or 'Kratzraum'
![]() 2 Opteron systems: OSx86 10.5.8, Andy's 9.8.0 kernel, Asus A8N-SLI Premium, Opteron 185 o'clocked @ 2 x 2,95 GHz (2nd system 2.6 GHz), ATI Radeon HD2600XT 256MB Dual-Monitor 2x HP L2035, 4 GB RAM, Griffin FireWave as main audio device, Marvell + nForce LAN, Asus U3S6 USB3/SATA6 card, 5,5 TB harddisk, Firewire 800 card, Apple Remote + eHome IR receiver, 2x Wacom serial graphics tablet, Canon Pixma iP4700, Logitech Internet Navigator wireless keyboard/mouse combination. My Audio stuff: M-Audio Transit USB (default audio), M-Audio ProFire 610, M-Audio ProFire Lightbridge (34 channels) using Creamware A16 ADAT converter • MIDI: M-Audio Midiman 4x MIDI interface • Behringer Audio Mixers: Xenyx 1002, Xenyx 1002FX, Xenyx 1202FX, Eurorack UB1002FX, Eurorack MX1804FX, Eurorack MX262A • FX devices: Lexicon MPX100 DSP, Behringer DSP-1000 Virtualizer, Behringer MiniFEX 800 DSP, Behringer Multicom Pro MDX4400 compressor • RETRO: MSSIAH midi/sequencer/synthesizer cardridge for the C64 (Dual-SID), Steinberg M.S.I. MIDI Interface for C64 |
#7
|
||||
|
||||
According to my friend (With a true Mac) taken from my chat log:
No. Even if it's not used, swap space is allocated each time a process starts. You need at least the amount of swap space that you have RAM. Double is better. IRIX has four kinds of swap space: 1. Raw swap partition--this is the fastest, but requires that you repartition the disk to change it. 2. Preallocated file--this is the second fastest, you use mkfile to create a file of some length and then point swap to it. It has the advantage that you can create it at any time, and it is all in one contiguous set of blocks on the disk. It still takes up disk space, and is not accessable from the miniroot for installation purposes. 3. Zero length file--You use touch to create a file and then point swap to it. It has the advantage of not using space until you need it. It has the disadvantage of possibly filling up the filesystem unexpectedly, and having extents. 4. Virtual swap--This isn't really swap space at all, you are just telling IRIX that you have this much space when you don't. It's generally good for applications that spawn a bunch of processes rapidly which would allocate a lot more swap than you actually have (mail servers would be a good example). Some applications will die horribly if this is turned on (Photoshop for instance). I wants option number 3...Its kinda like the Winders SwapFile, it feels like the most desirable option to me. NTFS space is quite available... 💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers. Tiger: G4 PowerPC Dual Core 400 Mhz w/640 MB RAM 20 Gig ATA HD all HFS+ Internal DVD Access to Server True Tiger Leopard: Acer Intel Atom Dual [email protected] w/1 Gig Ram 160GB HD-133GB NTFS, 15.68GB HFS+ SD slot No Net access iDeneb 1.6 Lite Compaq SR5710F [email protected] w/3 Gigs Ram 80 Gig ATA HD (NTFS - Vista) 200 Gig ATA HD (NTFS-Data) Access to Server Server: Compaq 1.8 Single Core Windows Server 2003 Enterprise Edition ~2 TB online.... |