Optimizing Linux
Hi,
Good day! Just want to ask a few questions on this one. I've look on my partitions and it seems like my root directory is near full sometime soon. Code:
[morton@mortonlx ~]$ df -h If all the data on my root is necessary right now, is it possible to kind of add a space on it by taking some gigs out of my /home directory? And also when I look on "top", I always see that I only have like 500mb memory left out of my 2gb. I haven't installed a database yet on my laptop, the only things I've configured are my hardwares, installed skype, and pidgin. How would I be able to trace which processes I dont really need. For day to day, I only need this IM softwares, browser, and development tools for my database. I think I don't need the sendmail? cups? ( this are the things I see starting up ). In short, I want to save space, and kind of save memory in hope of speeding up more my pc. Thank you very much. Any help is really appreciated. Regards, morton |
Quote:
Quote:
Code:
/dev/sda2 9.5G 5.4G 3.7G 60% / The remedy is to save your important data and reinstall Linux with a reasonable root partition size, like 20 GB (the definition of "reasonable" will change over time). And create a single large partition with the remaining space that contains everything else -- /home, /media/Softwares and /media/Data. There is no earthly purpose to all those extra partitions. All that will happen is that one of the partitions (that should be directories) will fill up sooner than you expect, and you will reinstall again, and again, and again. Big hard drives serve no purpose if their free space is unavailable to you. The easy way to make your life complicated is to split your drive up into a bunch of pointless partitions, each of which cannot share space with the others. Those partitions should be directories. |
Thank you very much for the reply. Sorry for my english on that, what I meant is that some time soon it will be filled fast. I got confused on having no partitions? I'm not sure but I got this idea before that if you did that partition on /home like it would be easier to mount or unmount new drives or something, I'm not sure I got that right.
So for now, your suggestion is to reformat and just do 2 partition for my linux? One for root, and the other one for the rest ( /home? ) The sdb is just my external drive. And as for the memory/processes, do you have something in mind for me to be on the right track of working on that? |
Quote:
This way you can reinstall or upgrade Linux without having to restore all your personal data. |
Make your swap 2x bigger than your total available memory. If you have 2GB of RAM then make your swap 4GB.
|
Thanks for the replies.
@lutusp - when you say 'for everything else', do you mean, that partition should not be one of the usual directories of linux, i.e. /usr, /home, so it should be like my own-named-direcotry, like /mydata? |
Hello mortonmorton,
as an example my ouput of df -h Code:
/dev/hda1 15G 9.7G 4.1G 71% / Here the output of free -m Code:
Gentoo ~ # free -m Markus |
Quote:
Quote:
|
my suggestion:
Keep it at 60% and install new software to one of the larger drives, and of course download data there also. Quote:
Code:
sh-3.1$ cat /proc/meminfo |
Quote:
|
Thank you very much again for all the inputs!!! It's much clearer now, will keep on reading =)
|
All times are GMT -5. The time now is 11:36 AM. |