Last edited by Cavsfan; January 11th, 2013 at 07:26 PM.
Check Java Version | Manually Update Java
Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
Ubuntu 12.04 | 12.10 | 13.04 | 13.10 | Linux Mint 14 | Windows 7 | All 64 bit
I hate having to learn the same lesson more than once. But, at least I had fun.
I got rid of my other swap files and trimmed the swap on the primary partition from 4GB to 1GB. I have never seen 2k used on any of my Ubuntus.
I have 4GB of memory and it suspends and wakes just fine.
Then I reboot. Whoops! I'm looking at grub rescue because I had my grub installed on Raring.I hate when that happens: I forget to install my grub on my main Ubuntu.
Luckily I have been there before and used my Lucid install disk to recover. It worked better than my Quantal disk which kept giving me errors about something missing.
So I gained a little disk space and reduced the number of partitions.
Makes me wonder if we even need swap files any more.Code:cavsfan@cavsfan-MS-7529:~$ sudo blkid -c /dev/null -o list [sudo] password for cavsfan: device fs_type label mount point UUID ----------------------------------------------------------------------------------------------------------- /dev/sda1 ntfs C: (not mounted) 1CFC7A8DFC7A60C6 /dev/sda2 ext4 Lucid /media/cavsfan/Lucid a162dc8a-e4df-4b79-b4c3-524761ff7ae1 /dev/sda3 swap <swap> 2a80f59e-e7c3-418e-aab2-ab5d19255a2f /dev/sda5 ext4 Precise (not mounted) 3b8b1954-24e6-4a5e-9074-70a1a94ed4be /dev/sda6 ext4 Quantal (not mounted) b5fc902c-0bf0-45b3-95a1-29f3c46dfe6a /dev/sda7 ext4 Raring / a6b7ac97-488f-4e87-b6af-247fcbf6df77 cavsfan@cavsfan-MS-7529:~$
Guess I'm cured now. Thanks!
Check Java Version | Manually Update Java
Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
Ubuntu 12.04 | 12.10 | 13.04 | 13.10 | Linux Mint 14 | Windows 7 | All 64 bit
Check Java Version | Manually Update Java
Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
Ubuntu 12.04 | 12.10 | 13.04 | 13.10 | Linux Mint 14 | Windows 7 | All 64 bit
You can always play around with your swappiness settings, so called.
I run the following, at the bottom of my sysctl.conf file (/etc/sysctl.conf)...
That should make your swap meter move...Code:# For Avast! kernel.shmmax=100000000 # # Cannot leave things alone vm.min_free_kbytes = 65536 vm.overcommit_memory = 1 vm.overcommit_ratio = 100 vm.dirty_background_ratio = 5 vm.dirty_ratio = 5 vm.swappiness = 99 # # Cannot leave these alone either net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 #
EDIT
Er... I suppose it goes without saying, but...
You'll need to do a restart, after editing this file, in order for the changes to take affect.
Last edited by VinDSL; January 12th, 2013 at 06:30 AM. Reason: Clarification
Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU
Check Java Version | Manually Update Java
Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
Ubuntu 12.04 | 12.10 | 13.04 | 13.10 | Linux Mint 14 | Windows 7 | All 64 bit
I can still clearly remember times when we were complaining about swapping (hence the name of EMACS (Eight Megabytes And Constantly Swapping))... Nowadays complaints are because swap is not (yet) used...
Last edited by Cavsfan; January 12th, 2013 at 11:36 PM.
Check Java Version | Manually Update Java
Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
Ubuntu 12.04 | 12.10 | 13.04 | 13.10 | Linux Mint 14 | Windows 7 | All 64 bit
That's probably the case.
I have a Linux laptop with 4 GiB RAM, and a Linux netbook with 2 GiB RAM, and I've never seen the swap meter move, regardless of what I'm doing.
This 1 GiB desktop machine is constantly swapping.
I occasionally max it out. It doesn't crash, per se, but gets horribly slow and unresponsive, until I start closing programs down.
So, yes, for some of us, swap is paramount. For others, it's left as an exercise in the second-order coefficient. LoL!![]()
Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU
I have 4GB... Occasionally I can see swap usage. Since I'm most of the time in awesome, fvwm, spetrwm, I do not use so much memory... But when I fire up GS, Unity or such, I'm able to provoke that... I also have vm.swappiness=0 most of the time, so...
Also, there is no proper hibernate without proper swap...
Last edited by zika; January 13th, 2013 at 09:08 AM.
I'd have to agree!So, I'll leave all my 'Buntus using the same 1GB as swap just because...
I have no problem "suspending" the PC but, I never cared about using the hibernate option.
Suspend is exactly like "sleep" in Windows 7 and that is what I want, although Ubuntu (all versions) go to sleep in less than 10 seconds while windows takes 2-3 times that amount of time.
Windows has what is very similar to a swap file called a pagefile.
If you let the PC control how much it needs it can become gargantous but, I found I can get by with giving it 300MB and it goes to sleep just fine.
BTW, while I was resizing and moving partitions with Gparted the other day it was almost as slow as windows defragmenting, which is slooooooooooow!
Glad Ubuntu doesn't need to be defragmented.
Oh, if you have a windows OS and have to defragment, that User Journal file ($UsnJrnl$) will get very huge and fragmented and will not defragment at all.
This will greatly speed that process up if you do this before hand.
To open a terminal window, press the "Windows key" and the letter “R”.
You will see the "Run Dialog Box". Type "cmd", and press "OK".
Delete the $UsnJrnl$ by entering fsutil usn deletejournal /n C: and wait until the prompt comes back.
Then defragment (hopefully using Defraggler instead of what comes with windows).
Instead of taking 2 days and not really finishing defragmenting the whole drive, it will complete pretty fast in comparison and do it well.
The user journal file will just rebuild itself after a reboot.
I know a tab more about windows than I do about Linux/Ubuntu but, learning is fun.![]()
Check Java Version | Manually Update Java
Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
Ubuntu 12.04 | 12.10 | 13.04 | 13.10 | Linux Mint 14 | Windows 7 | All 64 bit
Bookmarks