No Swap, No Disk, Only RAM

Greetings to the Arch community!
Yesterday, I performed my first installation of ArchBang on a brand new 16GB USB flash drive. The installation was easy enough (using the abinstall command from an ArchBang virtual machine - although I could not install GRUB, only SysLinux), but I have one major concern. I have read through the "Installing Arch Linux on a USB key" guide (https://wiki.archlinux.org/index.php/In … _a_USB_key) as well as the part about how to minimize read/writes to Solid State Drives (https://wiki.archlinux.org/index.php/SS … d.2FWrites) but still see no clear answer to my question.
I want to know how to ensure all activities performed on my USB drive occur ONLY in the volatile memory (RAM) of the host desktop/laptop.
I created the drive with only one partition (meaning no swap). The 'free -m' command shows available swap space as 0. 'df -h' still shows a number of tmpfs partitions, which I am not 100% certain how are related to swap. 'sudo /sbin/swapon -s' produces no output (as expected).
Basically, I do not want any data (other than that which I intentionally want to make persistent by actually saving onto my USB drive) written to the drive or the host machine's physical disk. My laptop has 6GB of RAM and my desktop has 16, but the drive only uses around 3-4, as I believe a 32-bit OS is limited to about that much. The guide on SSDs also states that swap is rarely used if there is more than 2GB of RAM available.
Nonetheless, I want to ENSURE that nothing is ever written to swap space or to the hard drive.
Have I already accomplished this or is there something else I need to do?
Thank you all in advance.

@Spider.007: Thank you for the reference to aufs. I never heard of it, but I will check it out.
@ewaller: Forgive my ignorance, as this is the first time I played around with running *nix off a USB flash drive, but to address your questions:
1. I do not want to create a swap partition on my USB drive in order to increase the longevity of the drive. No swap partition means no extraneous writes onto the USB stick. Of course, when I create, save or download files, they will have to be written to the drive. I also do not want any data written to the physical hard drive of the host computer (as would occur if I were installing a *nix distro the usual way - straight onto a host computer - and creating a swap partition). Thus, all activities that do not involve the ones mentioned above should occur only in volatile memory of the host computer. Please let me know if I am still being unclear or explain if what I wish is unfeasible.
2. I am unsure how the host OS is relevant when running Arch* or any *nix distro off a USB or LiveCD/USB, but my laptop is Win7 Home and desktop is Win7 Ultimate.
3. As Spider indicated, I only used the virtual machine (VMware) to install the distro onto the USB drive and am not interested in running it in a virtualized environment.
4. According to my research, ArchBang is for those who wish to run Arch Linux but without having to go through the hassle of the installation process (which I have gone through many a time). In fact, on the ArchBang Installation Guide (http://wiki.archbang.org/index.php?title=Installation), it even reads, "Tip: For reference, read the official Arch Linux Beginner's Guide online. If you are installing Archbang to a USB memory or USB HD, you have to add USB as a HOOK in /etc/mkinitcpio.conf, during the configuration. More information in the official Installing Arch Linux on a USB key."
Spider is again correct in that this question is not ArchBang- or Arch Linux-specific. However, if you still deem this inappropriate here, I will gladly move it to the ArchBang forums.

Similar Messages

  • Scratch disks and RAM usage

    i would like to understand the relationship between scratch disks and RAM usage in Photoshop.
    While i was working on a fairly big psb file (2gb), photoshop kept prompting that I was out of memory, but in fact the utilization was only 75% (i had 16gbs total, photoshop was only using 7gb, and i allowed PS to use up to 14gb in total). when it says out of memory, it was actually my scratch disk at fault ( i only set 1 scratch disk, which was my 120gb SSD running out of space).
    any idea how I can optimize PS to use up all my RAM first before even touching my scratch disk? (short of using a RAMdisk, please).
    thanks!

    I am curious about this also. I just reinstalled W-7--have 11 G of physical memory--a ton of hard drive empty space also, and I have been wondering why PS_CC is so slow--since basically I have only put my Security and Browser in addition to Adobe back on the Dell XPS computer..... At least now it does show the downloading percentage (like .psd file) , but that must be what is happening.  I do think that some of these "frozen" screens I have been experiencing, was because the program was using scratch disk, instead of the Ram... I came up from CS-5, and can't describe it in detail, but just realize how slow PS-CC is in most everything.  Going back and see if reallocating will help...

  • I purchased photoshop cs5 and I want to re install it because I have a new computer but I do not have the disk only the serial number?

    i purchased photoshop cs5 and I want to re install it because I have a new computer but I do not have the disk only the serial number?

    Download CS5 products

  • HT1444 I have recently acquired an update for my mac OX the program being the snow leopard, i have been forever inserting the disk only to have it ejected by my mac, hence, i am unable to update my system with snow leopard

    I have recently acquired an update for my mac OX the program being the snow leopard, i have been forever inserting the disk only to have it ejected by my mac, hence, i am unable to update my system with snow leopard, what can i do, as i have just paid out money for something which

    Worked like a charm and resolved my problem totally. The only issue I had is that, unlike the Computer (Mac OS). the iPad doesn't give constant visibility to what it is doing (feedback), so I wasn't initially sure it had done anything.
    When I opened my emailed message with .vcf file attached, and tapped the .vcf attachment icon, I saw activity on the icon for just a few seconds, then it reverted to the original with nothing apparently happening. After about 30 seconds, the secondary menut popped up indicating the transfer of 1200 addresses would be completed, if I approved the action. Another 10 to 15 seconds then transpired before the completed Contact list appeared on the ipad. So you must be patient, if you have a large Addressbook. That's reasonable,but unexpected lack of feedback left me wondering, like so many other things on the iPad.
    THank you for the assist. Apparently Apples Mac Genius people did not know this procedure, and I will pass it on to my local Apple Store Instructor.
    -- Chuck

  • Cannot load Photoshop Elements 10. 1st (of 3) disks only gives me option to import photos and videos, not to install. How can I install?

    Cannot load Photoshop Elements 10. 1st (of 3) disks only gives me option to import photos and videos, not to install. How can I install?

    Are you sure that:
    1. You have the correct disc for your operating system? You have both mac and windows versions on the discs. If you have a mac you want disc 3, not disc 1.
    2. PSE is not already installed?

  • Event 917 Console Crash when attempting to modify Disk Only Protection Group

    Primary DPM 2012 R2 4.2.1254.0 running on Server 2012 -
    In the process of decommissioning a number of old servers - I found that I am no longer able to modify a disk only protection group on one of my primary DPM servers. Console crash - noting error 917. I've seen a number of work around in relation to protection
    groups with long term storage, but none noting disk only. Notably, kb 2905631 - long term only protection may cause this issue.
    Another thread mentioned that re-syncing / consistency checks on the entire server resolved the issue for them, but I find that rather unnecessary. I've over 13Tb of data on this server, and am trying to remove the last 30GB of an old protection group.
    Recap-
    Error 917 when removing member from protection group
    MMC crash with a 999 marked when modifying the protection group
    The event log is not noting any service crashes, or the 917 error in the event log. 999 is getting recorded in the event log.
    The description for Event ID 999 from source MSDPM cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event: 
    An unexpected error caused a failure for process 'mmc'.  Restart the DPM process 'mmc'.
    Problem Details:
    <FatalServiceError><__System><ID>19</ID><Seq>0</Seq><TimeCreated>12/2/2014 5:40:14 PM</TimeCreated><Source>DpmThreadPool.cs</Source><Line>163</Line><HasError>True</HasError></__System><ExceptionType>SqlNullValueException</ExceptionType><ExceptionMessage>Data
    is Null. This method or property cannot be called on Null values.</ExceptionMessage><ExceptionDetails>System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
       at System.Data.SqlClient.SqlBuffer.get_String()
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.ProtectionGroup.ReadBackupAndCCWindow()
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.ProtectionGroup.get_BackupWindow()
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.ProtectionGroup.GetPerformanceString()
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.ProtectedGroupUIElement.AddPerformanceData()
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.ProtectedGroupUIElement.ConstructDetailsPaneContent()
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.CommonControls.UISearchableElement.get_DetailNameValuePairs()
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.ProtectedGroupUIElement.DisplayDetails()
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.ProtectionViewInternal.FillGroupDetails(GroupingListHeaderItem group)
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.ProtectionViewInternal.UpdateDetailsPane()
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at Microsoft.Internal.EnterpriseStorage.UI.CommonControls.GroupingListView.EndUpdate()
       at Microsoft.Internal.EnterpriseStorage.UI.CommonControls.GroupingListViewBody.ProcessClick()
       at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message&amp; m)
       at Microsoft.Internal.EnterpriseStorage.UI.CommonControls.GroupingListViewBody.WndProc(Message&amp; m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</ExceptionDetails></FatalServiceError>
    the message resource is present but the message is not found in the string/message table

    Hi Mike,
    That appears to be the case. A row shows NULL for IMCatalogXML. I'm looking at your script to update the value now based on the following thread - thread .
    So far, no rows have been modified.
    Since I really don't care about this protected member, is this a row I could just delete from the DB, or how to properly update the data so I can remove it from within the confines of the GUI?
    Marketing 2011-05-19 18:59:41.917
    B7073B10-DDE6-4EA3-BD8C-1E1497C218D5 NULL
    NULL 0
    0 0 NULL
    2 0
    NULL
    This PG was definitely around back when this server was DPM 2010.
    Regards

  • He system software on this startup disk only functions on the original media

    i welcom.ith a warning ofantheer on my g4 when my frieend told it to boot os 9.2 after boot thee first disk wasnt finished loading now the g4 wont boot it goes to the system the system software mon this startup disk only functions on the original media not if copied to another drive. Has a restart tab but at this point it has frozen and the mouse and keyboard do not functiuon. NEED HELP

    Did this machine work before you tried to install 9.2?
    you may not have the correct cd. i think you need the restore cd that came with the machine.
    Where did you get the cd?  black or grey?
    We need your exact machine.
    Query by serial number
    "A serial number is a unique, identifying number or group of numbers and letters assigned to an individual piece of hardware or software. It's used for various things depending on the product / brand but what is your Mac's serial number for and more importantly... what is it hiding and what can it do for you ?"
    http://www.appleserialnumberinfo.com/Desktop/index.php
    >i welcom.ith a warning ofantheer on my g4
    >when my frieend told it to boot os 9.2
    why?
    does the cd boot into the software installation process?
    Where you able to pick what disk to install onto?
    >after boot thee first disk wasnt finished loading
    Could be a damaged disc.  How long did you wait?
    >now the g4 wont boot
    We understand this line.
    >it goes to the system the system software mon
    Don't understand this.  What appears on the screen?
    >this startup disk only functions on the original media not if copied to another drive.
    & your point is?  You need to use the installation software to install.  You cannot copy the cd. 
    >Has a restart tab but at this point it has frozen and the mouse and keyboard do not functiuon.
    I don't understand this.  Can you take a picture & post here.
    >NEED HELP
    Don't we all.
    You are allow to edit your posts for 15 minutes.  The edit is to the upper right in a sidebar.
    Plese spell check the document before posting.

  • Full GC takes 5 mins due to heap swapped to disk

    Hi All,
    We are now suffering the long Full GC issue. After checking disk I/O and page read/sec, we believe it is because JVM heap is swapped to disk.
    What we do not understand is the heap is arround 1.3G and the available memory is always > 5G.
    Why heap is swapped to disk if when available memory is still huge? Is there any solution (from Sun or Microsoft) to avoid heap swapping? (or any other workarround to reduce Full GC time)
    OS is: Windows 2003 (32bit)
    Thanks

    I'll have to see if I can find the article that actually states the following...
    ...start of paraphrasing...
    Windows tries to keep enough memory available to other applications in case something all of a sudden decides it needs a bunch more memory. Unfortunately, there is no way to hint to Java that it should keep everything in memory.
    ...end of paraphrasing...
    The following enhancement request is to add that hint to Java (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6388637). Please vote for it. You may also want to look up the Eclipse plug-in called KeepResident. Adapting the code might work for you as well.
    If you have enough physical memory (and it sounds like you do) try disabling the swap file and take the decision away from Windows altogether.
    There are also a number of other things you can do to reduce GC times. What JRE version and GC current settings are you using?
    BTW, perfmon stats regarding page read/sec (page faults) isn't the same thing as swap file utilization, additionally, when the JVM is started, Windows will allocate space equivalent to the heap size in the swap file (in case it has to swap the JVM out).

  • Time Capsule use as hard disk only

    Can I use my Time Capsule as hard disk only?
    Since I have an iPod, iPad, iPhone I intend to save and all my files, including my itunes media in one place and easily access it wireless trough Time Capsule.
    If the answer to my question is yes Can I have a setp by srep explanation...
    I came a few articles and youtube videos but so far not been able to do it

    If you want to have internet, then the TC has to be connected to your modem or router..
    The TC can create its own wireless network. But then you have one wireless network for internet and another one for TC hard disk access.. And you cannot combine them.
    So the best way is to bridge the TC.
    Steps are simple.
    Download 5.6 utility and install it. (you can probably do it from v6 but it has fewer controls and options).
    http://support.apple.com/kb/DL1482
    Go to manual setup, and click the internet tab.
    Go to connection sharing down the bottom.. choose off bridge mode.
    Update the TC.
    Now plug it into the main router by ethernet.. and the TC will be part of the existing network but not interfere with it.
    Wireless should be ok.. but if you need to you can also turn off wireless.
    There are several posts with pictures.. I will try and find one for you.

  • TT Issue "9994 Loading data store from disk into RAM in progress"

    Getting this strange issue. Sometimes (2-3 times a day) TT just becomes unavailable and when trying to connect to it getting "9994 Loading data store from disk into RAM in progress".
    Any advise on what the root cause for this behavior might be?

    In all likelihood this is exactly what it sounds like - your datastore is being reloaded from disk into memory. Connections can't be completed until the datastore has gone through recovery and is fully in-memory. You need to look back through your ttmesg.log files and find out why the datastore was taken out of memory in the first place. Possibly there's been a crash and it has been invalidated, meaning it needs to be recovered from the checkpoint files and transaction logs. Or maybe there were no user connections and it was taken out of memory and checkpointed to disk in a normal, controlled fashion. The ttmesg.log files will tell you what happened.

  • Can I use time capsule as an external disk only (not as a wireless router)

    how can I use my time capsule as an external disk only. I have had problems with time capsule as a wifi router.

    Sure.. but it is still a network drive and must use wireless or ethernet.. the best way is plugged into the main router in bridge mode.. but you can use it in secondary network.. although the setup is more complicated.
    It is also less good than a simple external drive.. which is cheaper, faster and more reliable. Consider if the TC doesn't suit your needs get rid of it and opt for simple external drive.

  • Out of memory with no swap causes disk activity

    Can someone explain what exactly is being read/written from/to disk in this situation?
    I have 2 GB of RAM and no swap partitions. Occasionally I'll forget how inefficient gwenview is at displaying very large images and accidentally double-click one. The entire system freezes; even alt+sysrq keystrokes are ineffective (and yes I do have them enabled).
    For about 5 minutes, the system is locked up and the hard drive light is flickering. That scares me a bit, because with no swap, what could it possibly be doing for 5 straight minutes? I used to think it was synching before doing the OOM-killing, but there's no way a sync could take that long. Judging from the sound of the hard drive, it's hda (the drive / and all the other system partitions are on).
    A few times after recovering from this I've run extensive data verification and never found any evidence of corruption, but I'd like to know for sure that the kernel isn't randomly deciding to use some filesystem as swap space.
    In the mean time, I'm playing with disabling overcommit -- setting vm.overcommit_memory = 2 in /etc/sysctl.conf. That enforces a hard memory commit limit of swap size + overcommit_ratio * ram size (so I've read) -- and I've also read that the default overcommit_ratio is only 50%. What the bloody hell? It's almost like someone thinks swap is more important than RAM -- hell-llo, I have 2 GB of RAM so that I can get *away* from swap!
    Anyway, I've set the ratio to 97% and so far things seem happy -- if I deliberately run out of memory, the process that did it always gets killed instantly and the system doesn't freeze up on OOM anymore."
    Another thing -- in all my out of memory situations so far, VMWare has been running. I suppose it's possible that VMWare is the one doing the swappage; I'll have to investigate that further.
    ~Felix.

    I think I've finally figured this out. It's a kernel bug -- I'm guessing that under normal circumstances, the "cached" column in the free command "doesn't count" towards how much memory the system thinks it's using. After all, it's just cached copies of stuff that should be elsewhere, and if you run out of memory, you can safely dump that, right? Unfortunately, /dev/shm is counted under cached rather than used memory (as I discovered in an earlier post).
    So if I've got 500 MB of stuff in /dev/shm * (which is where I mount my /tmp), there's now 500MB of stuff in the "cached" column that really does count -- system reaches all RAM full, decides it needs to dump cache, and suddenly finds that the 500MB it thought it could use isn't usable. For some reason it takes about 5 minutes of hard drive thrashing (probably because it's already chucked all of the system libraries, etc. out of cached and needs to re-read them from disk every time) before something finally figures out that it really is out of memory and that that 500MB isn't letting go and invokes OOM-killer.
    *: VMWare does this; it creates a 512MB file (the amount of RAM in my virtual machine) then hides it by keeping the file open and deleting it, so the inode's still there, but you can't see it and it makes the df command really perplexing... but that's another story.
    I haven't had a chance to try this with a newer kernel (maybe they've fixed it now?); I'm still running 2.6.23-ARCH here. (pacman -Syu upgrades are a major production for me because I have lots of RAID arrays and things, and an nvidia graphics card, and I use gnucash which sometimes needs manual recompiling, and so on...)

  • Xserve G5 - won't boot from disk, only network

    I recently installed Yellow Dog 4.0 on a drive (far left) in a 3 bay G5 and I cannot get it to boot from the disk in the drive (not even by lighting the 3rd light on the lightshow). However, when I take the drive out and put it into a different G5 server that has only a single bay it works fine. I've also put the drive from the working G5 into the new G5 and it tries to boot from the network as well. I've looked at the Open Firmware for both G5's and they seem to be the exact same, including the 'boot-device':
    /ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@0/disk0:2,\\:tbxi
    When installing, I took the default partitions:
    sda2 (1M) type=AppleBoot
    sda3 (76439M) type=ext3, mountpoint=/
    sda4 (1992M) type=swap
    sda5 (100M) type=ext3, mountpoint=/boot
    Thanks for any help, and let me know if more info can help.

    gjortega,
    I had the same problem. I found a very illogical fix to boot my G5 listed below. When it won't boot I take the side panel and the plastic shield out of the tower and then boot. This makes the fans run at full speed but in my case it starts right up. After it starts just replace both panels and the fan will revert to a slower speed and the computer will continue. I don't know why it works for me but I have found that others on the forum have had it work for them also.
    Let me know if it works for you.
    Regards, Phil
    Macintosh b'Gosh

  • Windows swap, despite having enough RAM and Buffer

    Hi,
    My SAP landscape is:
    Application Server:
    1. Windows 2003
    2. 32GB RAM
    3. 90GB Page File
    SAP ECC6.0 installed.
    PHYS_MEM = 28GB.
    In ST02, there is no swap. Very stable. Occasional use of Private Memory.
    However, on OS level, the swap is amazing. Physical free always around 20GB RAM, but the disks are swapping in/out by disp-exe processes.
    How can I minimise this and let SAP use the physical RAM?

    Hi,
    This a very well known problem.
    You have to install the Microsoft specific hotfix which was designed for SAP servers.
    Check OSS  [Note 1009297 - Windows Server 2003 Family: High Paging Rates|http://service.sap.com/sap/support/notes/1009297]
    Regards,
    Olivier

  • PS uses scratch disk over RAM

    Hi!
    My Photoshop seems to use scratch disk instead of RAM.
    Here's the scenario: I open up a file, convert it to a smart object and begin tiling it in a new document.
    In task manager the memory usage for Photoshop.exe doesn't grov very much, it's around 300mb when I've duplicated my picture a few times. My scratch disk however has a temp file weighing 5gb! Task manager says also that the total usage of my physical memory is only 23%.
    I have 8gb of RAM installed and I have my Memory Usage Settings set to Let Photoshop Use 5.4gb.
    Now why is it that Photoshop uses my scratch disk even though I have lots of free RAM available? I thought Photoshop only uses scratch disk when the RAM is full?
    I have Windows 7 64-bit with Photoshop CS5.

    antevante wrote:
    Now why is it that Photoshop uses my scratch disk even though I have lots of free RAM available? I thought Photoshop only uses scratch disk when the RAM is full?
    It's unclear how big a file you are talking about-doesn't seem to be very big? Photoshop by default will always allocate scratch disk space upon launch. Whether or not it uses it depends on how much ram you have and how big the image is. Photoshop tries to keep it's operations in ram and only goes out to the scratch disk when needed.
    However, Photoshop always uses scratch disk space to track history. If the history step is only a small area tile it doesn't take up much space. If it's the whole document, history can very quickly suck up the scratch disk space. By default the History is set to 20 steps, if you do something involving the entire file, the scratch disk usage could end up being 20X the original file size depending on the number of steps you have in history. Note, the History feature doesn't actually steal ram from Photoshop...it's only writing to the scratch disk but it can get real big real quick and you've found out.

Maybe you are looking for