Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
|
 |
11-13-2005, 07:57 PM
|
#1
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Rep:
|
swap file doesn't work
Since I have upgraded my fc3 machine to fc4 when I work some programs simultaneously every thing get frozen and I have to reset my computer manually. I have a athlon 2000 XP+ with 384 MB ram. Swap file is 777MB but it never works for me. In system monitoring it is always empty even when run huge program.
|
|
|
11-13-2005, 08:41 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Are you actually activating it? Have you got it in /etc/fstab
so you get it switched on automagically? And is it actually
a file or have you got a swap-partition (you should)? Where
is it set-up, how has it been set-up?
swapon <filename>
Cheers,
Tink
|
|
|
11-13-2005, 08:48 PM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,393
|
Simply issue "swapon -s" to see if you have any swap enabled/active.
|
|
|
11-14-2005, 08:10 AM
|
#4
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Original Poster
Rep:
|
/sbin/swapon -s
Filename Type Size Used Priority
/dev/hda3 partition 795208 900 -1
swap file is available in fstab but I don't know why it never works for me. when my CPU usage become very high my computer freezes and every thing gets stopped and I have to reset it
|
|
|
11-14-2005, 09:36 AM
|
#5
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
Please post the swap partition entry from /etc/fstab.
|
|
|
11-14-2005, 12:07 PM
|
#6
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Original Poster
Rep:
|
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults 1 2
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
LABEL=SWAP-hda3 swap swap defaults 0 0
I am not sure whether the problem is with swap file. Maybe my athlon XP 2000+ is not good enough for linux
|
|
|
11-14-2005, 12:55 PM
|
#7
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,262
|
Umm, yeah, it's "good enough for Linux." That isn't the problem.
The swapon output indicates that the swap-partition is being used, although it is almost completely empty. I conclude that whatever is causing your system to freeze is not related to swapping.
Does /var/log/messages have anything?
|
|
|
11-14-2005, 02:43 PM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
What's the output of free?
In terms of the labeling - my understanding was that
the kind of label you're using is specific to ext2/3, and am
not certain that it will work with swap files. Try something
like this instead:
/dev/hda3 swap swap defaults 0 0
Cheers,
Tink
|
|
|
11-14-2005, 04:37 PM
|
#9
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Original Poster
Rep:
|
in /var/log/messages there is nothing written about this problem
|
|
|
11-14-2005, 04:42 PM
|
#10
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Original Poster
Rep:
|
I changed the fstab to /dev/hda3 swap swap defaults 0 0
I hope it works
|
|
|
11-15-2005, 09:10 AM
|
#11
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Original Poster
Rep:
|
I still have that problem.
Even when I am reading a text and doiing nothing special my computer freezes.
in the system monitor when it freezes CPU usage is 100%
|
|
|
11-15-2005, 04:03 PM
|
#12
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,393
|
What does dmesg have to say at the point it attempts to mount the swap ???>
|
|
|
11-15-2005, 05:27 PM
|
#13
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Original Poster
Rep:
|
at the end of the file is written:
Adding 795208k swap on /dev/hda3. Priority:-1 extents:1
But I don't think that anything's wrong with swap
I have doubts about FAN, because CPU temperature is around 80c and system is 44c
|
|
|
11-17-2005, 08:00 AM
|
#14
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Original Poster
Rep:
|
I was working on windows and my computer suddenly stopped working. that means there is a problem in hardware.
I have 2 RAMs. one 128 and the other 256.i think one of them doesn't work properly.
I have doubt about my CPU fan also. Since I have an AMD athlon machine it heats so moch and i think my fan is not enough for it.
I don't think that there could be any other errors.
|
|
|
All times are GMT -5. The time now is 02:05 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
|
|