Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-30-2006, 01:51 AM
|
#1
|
Member
Registered: Jun 2005
Distribution: Fedora 11
Posts: 68
Rep:
|
My top messages
My applications suddenly slow down in operation.I TOPed it for checking out.It said :
81 processes 78 sleeping, 3 running,1 zombie,0 stopped;
CPU states:0.4% user,0.0% system,0.0% nice,...99.6% idle;
Mem 255264k av,251812 used,3452 free,0k shrd,6072k buff,209112kactv,10324k in_d,4724k in_c;
Swap 0k av,0k used,0kfree,5565k cacked.
The memory was hogged too much?
And what I should do with that?
Thanks very much.
|
|
|
04-30-2006, 05:18 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
You should add some swap space, since you have none. That way, pages that are idle can be moved out to make room.
|
|
|
05-01-2006, 07:12 AM
|
#3
|
Member
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388
Rep:
|
Having no swap is really a bad idea. It is almost certain that it is causing your problems. I'd create a swap partition (or a loopback file) with size of at least 256MB.
|
|
|
05-01-2006, 09:27 PM
|
#4
|
Member
Registered: Jun 2005
Distribution: Fedora 11
Posts: 68
Original Poster
Rep:
|
Thanks all!How to create a swap partition post installation?By command line?
|
|
|
05-01-2006, 10:47 PM
|
#5
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
The easiest way is to create a swap file. The following instructions will create a swap file of 512MB (2x your RAM). As root:
dd if=/dev/zero of=/swap bs=1M count=512
mkswap /swap
Now, edit your /etc/fstab, and add the following line:
/swap swap swap defaults 0 0
To begin using the swap space immediately:
swapon -a
The top command will show the swap space and its usage.
|
|
|
All times are GMT -5. The time now is 04:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|