New Posts  All Forums:Forum Nav:

ubuntu swap file - Page 2

post #11 of 12
Thread Starter 
Quote:
Originally Posted by enorbet2 View Post
I am saying that there is no big deal to having one especially of 1G or less, so why not just cover your butt and have one and then forget about it. Glad to hear it is performing so well.
Well I tried making one, I just don't know how to see if it is actually there or working.
baby cakes
(13 items)
 
Macbook 4,1
(13 items)
 
 
CPUMotherboardGraphicsRAM
i7 930 [4.01Ghz vCore 1.28125 HT on] GA-X58A-UD3R ZOTAC GTX 460 1GB SLI [840/1680/1900 @stock volts] CORSAIR XMS3 6GB (3 x 2GB) 1600Mhz 
Hard DriveOptical DriveOSMonitor
C300 64GB SATA III, 2x F3 1TB 7200rpm RAID 0 Sony Optiarc 24X DVD/CD Ubuntu 14.04 22" Dell SP2009W 1680x1050 
PowerCase
CORSAIR HX 750W Cooler Master HAF 922 
CPUMotherboardGraphicsRAM
Core 2 Duo 2.4Ghz Penryn T8300 Some logical board GMA X3100 4GB (2x2GB) DDR2 667Mhz 
Hard DriveOptical DriveOSMonitor
Hitachi 160 GB 5400 RPM SATA II Combo drive OSX 10.6.4 (Snow leopard) 13.3" 1280x800 TFT 
PowerCase
Dying battery White macbook case 
  hide details  
Reply
baby cakes
(13 items)
 
Macbook 4,1
(13 items)
 
 
CPUMotherboardGraphicsRAM
i7 930 [4.01Ghz vCore 1.28125 HT on] GA-X58A-UD3R ZOTAC GTX 460 1GB SLI [840/1680/1900 @stock volts] CORSAIR XMS3 6GB (3 x 2GB) 1600Mhz 
Hard DriveOptical DriveOSMonitor
C300 64GB SATA III, 2x F3 1TB 7200rpm RAID 0 Sony Optiarc 24X DVD/CD Ubuntu 14.04 22" Dell SP2009W 1680x1050 
PowerCase
CORSAIR HX 750W Cooler Master HAF 922 
CPUMotherboardGraphicsRAM
Core 2 Duo 2.4Ghz Penryn T8300 Some logical board GMA X3100 4GB (2x2GB) DDR2 667Mhz 
Hard DriveOptical DriveOSMonitor
Hitachi 160 GB 5400 RPM SATA II Combo drive OSX 10.6.4 (Snow leopard) 13.3" 1280x800 TFT 
PowerCase
Dying battery White macbook case 
  hide details  
Reply
post #12 of 12
Greetz
For a very long time now Posix systems have had failsafes to create swap on-the-fly to avoid topping out failures. Most modern Linux distros have expanded on that now that drives are commonly automounted. If you've ever run a LiveCd on a box that has a swap partition, they are programmed to automatically detect their presence and utilize them. The *Buntus have accommodated a wide range of boxes and users by avoiding declaring a dedicated swap in /etc/fstab allowing the system to manage it.

That is really convenient but it is also wasteful and inefficient. Unless you've already changed it, if you open the "/etc/fstab" file in a text editor you will see whether or not swap is declared. If you've already created a swap partition I recommend declaring it in fstab because leaving it to the system means it will poll constantly to see if there is enough even if you aren't using any.

Here's a good article on it

http://ubuntuguide.net/howto-expand-...file-in-ubuntu

IN addition some distros like Ubuntu have a setting that controls just how high a priority swap has, called "swappiness". You can view your default setting (likely 60 - the scale is from 0-100, where 100 is swapping all the time and 0 is almost never) with

Code:
cat /proc/sys/vm/swappiness
Most knowledgeable people agree that Desktop systems, especially laptops, should be set to 10 instead of 60 for a nice performance boost (less thrashing)

You can try it temporarily with

Code:
sudo sysctl vm.swappiness=10
and make it permanent by changing the value in /etc/sysctl.conf with a text editor (as root)

Setup as dedicated partition permanently assigned in fstab and swappiness set to 10 should be a quite noticeable improvement.
NewMain
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 - 3550 Asrock Z77 Extreme4 Gigabyte GTX 760  4x2GB Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
Seagate SATA 2TB x 2  Plextor PX-891SAW CM-Hyper N520 Slackware 14, Studio KUbuntu, OpenSuSe 12.3, Wi... 
MonitorKeyboardPowerCase
32" Vizio HDTV + DLP Logitech Wireless Corsair HX-850 Antec Sonata I 
MouseMouse PadAudioOther
Razer DeathAdder 2013 dual ESI Juli@ CoolGear ExtSata Enclosure w/ Optical and 3TB S... 
  hide details  
Reply
NewMain
(16 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 - 3550 Asrock Z77 Extreme4 Gigabyte GTX 760  4x2GB Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
Seagate SATA 2TB x 2  Plextor PX-891SAW CM-Hyper N520 Slackware 14, Studio KUbuntu, OpenSuSe 12.3, Wi... 
MonitorKeyboardPowerCase
32" Vizio HDTV + DLP Logitech Wireless Corsair HX-850 Antec Sonata I 
MouseMouse PadAudioOther
Razer DeathAdder 2013 dual ESI Juli@ CoolGear ExtSata Enclosure w/ Optical and 3TB S... 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix