![]() |
Swappiness - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: General (https://www.linuxliteos.com/forums/forumdisplay.php?fid=4) +--- Forum: On Topic (https://www.linuxliteos.com/forums/forumdisplay.php?fid=14) +--- Thread: Swappiness (/showthread.php?tid=1568) |
Swappiness - bruno - 02-21-2015 Would those of us who use LL2.2 benefit at all from reducing the swappiness ? I ask only because it was a recommended thing to do in ubuntu 14.04 Re: Swappiness - rokytnji - 02-21-2015 Depends on the gear Code: harry@biker1:~$ sudo parted -l I run no swap on SSD out of personal preference. Re: Swappiness - avj - 02-22-2015 I found this article interesting on the subject of swappiness. http://unix.stackexchange.com/questions/88693/why-is-swappiness-set-to-60-by-default Re: Swappiness - ukbrian - 02-22-2015 I'm curious why swap partitions are recommended instead of swapfiles? I use one 4 GB swapfile that lives on my data partition for all my OS's. Am I being a silly billy? Re: Swappiness - Wirezfree - 02-22-2015 @ ukbrian I still class my self as new to Linux March/April this year when I really took the plunge. If you ask 10 "guru's" you will probably get 10 different answers to the "Best" set-up.? I can only give you my take on it, but it depends on a few initial factors: 1. What Hardware you currently have, unless you are willing to upgrade, or are building a new PC 2. What are you going to be doing, Day to Day just general stuff, Development work, Production Desktops/Servers From this, and from what I have read/found there are a myriad of different configuration/set-up options. So going to the original post on "swappiness", from what I have picked up(read) Changing this value is only useful if you have a reasonable amount of memory 4GB+ It means you will use "faster memory", instead of potentially "slower" disk access for swap activity. But with the caveat of point "2" above, in some case you may see no noticeable improvements. To your point on "swapfile", Again, it is a combination of points "1 & 2" above. If you have a small amount of memory, a swapfile can be useful for certain uses, and also if you want to "Hibernate" Should it be a on a separate partition.??, back to point "1 & 2", I have seen some recommendations where they have 7 or 8 different types of partition spread across multiple drives Also, but not actually done/tried it yet.?, having a separate /swap partition means you can share it in a multi boot set-up and save some disk space, For me, I have come to a balance of 4 partitions:[size=1em] /root , /home , /data , /swap [/size] I can easily just back my /data or my /home and hopefully keep upgrades simpler.? But it needs a bit of config & set-up after installs One thing I have read and seen, but I'm still not clear if it it's done by default/automatically, and not obvious.?? If you have a reasonable amount of memory 4GB+ is moving the "temp & tmp" from disk to memory via "fstab" at start-up Bottom line, I don't think there is one size fits all, But maybe there are some set-up's and configs that make the most of what you have..?? Dave Re: Swappiness - ukbrian - 02-22-2015 @Wirezfree Thank's for replying friend. I'm thinking more from a new users point of view to simplify things for them. I believe the multiple partitiond business comes down from the server world and is not of any benifit on a desktop. A swap file is good enough for Windows. I first encountered a linux swap file on Saline OS the dev was a network manager ![]() To me a 30 GB swap seems daft but he also did a server version of Saline. I have never used a home partition, it's another unneccessary partition to create and confuse new comers with, using a NTFS data partition is the only sensible way! /windows /root /data. I have FX ESR portable https://www.mozilla.org/en-US/firefox/organizations/all/ unpacked at /data/apps/mozilla/firefox with my FX profiles at /data/apps/mozilla/profiles so all my linux OS's use the same FX portable folder and profiles, I was chuffed to be able to use the same folder/profiles for manjaro, fedora and opensuse linux's. It also worked for my Deadbeef portable jukebox. I rarely go into my /home/user folder as I have symlinks from /home/user/data where my data partition is mounted by fstab to /home. eg Code: sudo ln -s /home/user/data/downloads /home/ Code: sudo ln -s /home/user/data/downloads /home/ ![]() If I install a new OS I normally from in the live dvd open thunar and add a data folder /home/user/data to the new install and then run thunar as root "gksu thunar" and edit the new fstab at /etc/fstab and add Code: LABEL=data /home/user/data ntfs-3g defaults,uid=1000 0 0 I then edit "/etc/default/grub" so it looks like this Quote:# If you change this file, run 'update-grub' afterwards to update GRUB_DISABLE_SUBMENU=y Will a new comer be able to use anything in this "Advanced" menu option? I've never done anything with it so I remove the clutter of this option. #GRUB_GFXMODE=640x480 A new comer from windows see's a menu for the first time ever and it's in a very small font, user friendly? I don't think so, so I always remove the comment tag. #GRUB_DISABLE_RECOVERY="true" Is this of any use to a new comer, I've never used it so I uncomment it and remove another option or more clutter from my menu. I normally write the new grub to the root partition so next I boot into my base OS and run grub-doctor to update the grub on the new OS and then do a "sudo update-grub" and reboot. I'm rambling(off topic) again I know, put me against the wall please young un's, you can't teach an old dog new tricks. ![]() Ikey's already rebuilt his base and beta 1.1 is likely to be out late weekend, I hate the depressing hard to see themes he uses but this rebuild seems to have made the packaging even easier. https://plus.google.com/112089348047460560288 |