Suspending Browser Tabs for Memory Conservation

If you’re like me and have upwards to 30-50 browser tabs open at the same time, you may notice that your computer becomes sluggish.  In my case this was because all the tabs still consume memory even though I might not need them for some period of time.  I still like to keep some tabs that I might need to quickly refer back to later.

I recently found a Chrome extension called The Great Suspender that automatically replaces the tab with a placeholder page after a certain period of time, optionally with a screenshot of what the page looked like.

An example of a suspended tab

With the click of the mouse anywhere in the placeholder, the actual page reloads.

The extension also allows you to manually suspend tabs if you know you won’t be needing the tab for a while, and whitelist certain pages or sites to never suspend automatically.

I’ve found I can save a few GB of memory, which could be nearly 20% of total my system memory.  Every bit counts!

VMware ESXi Scratch Space

If you installed VMware ESXi on a USB stick like I did, the “scratch space” (used for storing logs and debug information) is stored on a RAM disk.  This takes up 512MB of memory that could otherwise be provisioned to virtual machines.  In addition, it does not persist across reboots, which explains why I was never able to find any logs after a crash. Also I was seeing random “No space left on device” errors when I was trying to run the munin monitoring script for ESXi.

The solution to this is to simply create a folder on a disk, and configure ESXi to use it.

  1. Login to the console or SSH to the host.
  2. Go into one of your datastores in /vmfs/volumes/
  3. Create a directory for the scratch space.
  4. Login to the vSphere Client.
  5. In the Host device, go to the Configuration tab, then find the Software category on the left menu and click Advanced Settings
  6. In the Configuration parameters window, find ScratchConfig on the left.
  7. For the “ScratchConfig.ConfiguredScratchLocation” box, enter the path to the folder you created in step 3.
    ESXi Advanced Settings Window
  8. Reboot the host.

It’s as simple as that!

References: