Ubuntu hangs after few hours of nonstop operation

Asked by nakedfakeer

after few hours (say 6-8 hours) of non-stop running, ubuntu starts to hang on any operation, be it word processing or internet browsing. the screen turns a shade of grey and the mouse moves with hiccups. restarting though solves the problem. seems to me to be something similar to WINDOWS virtual memory low problem. i have 512 mb of ram, is it not enough for ubuntu. running intrepid 32 bit.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Daniel Hollocher (chogydan) said :
#1

I don't know, but you can use the `free` command to check what your current memory usage is.

Do you have swap space?

Revision history for this message
Dimitris Kogias (dimitris-k) said :
#2

Have you run a memory test? A memory issue is a possibility with what you're describing.

Revision history for this message
nakedfakeer (nakedfakeer) said :
#3

memory module is brand new, i don't think the problem is with the memory module. 'free' did throw some light on the issue. my swap space was showing '0' under total, though i had a swap space of 1.94 GiB, turns out swap was disabled somehow. i have enabled it for now but whether that solves the problem is yet to be seen. i will reply after my tests. thanks guy's.

Revision history for this message
nakedfakeer (nakedfakeer) said :
#4

memory module is brand new, i don't think the problem is with the memory module. 'free' did throw some light on the issue. my swap space was showing '0' under total, though i had a swap space of 1.94 GiB, turns out swap was disabled somehow. i have enabled it for now but whether that solves the problem is yet to be seen. i will reply after my tests. thanks guy's.

Revision history for this message
nakedfakeer (nakedfakeer) said :
#5

ignore the third post, pressed 'problem solved accidentally'.

Revision history for this message
nakedfakeer (nakedfakeer) said :
#6

ok, looks like it is a swap space problem. every time i boot, i find that my swap space is switched to off. how to fix this guy's.

Revision history for this message
Dimitris Kogias (dimitris-k) said :
#7

Have a look at your /etc/fstab file, is there a line like;

/dev/sda<n> none swap sw 0 0

in it?

If not, you can add it manually using "sudo swapon -a". From the swapon manual page:

       -a, --all
              All devices marked as ``swap'' in /etc/fstab are made available, except for those with the ``noauto'' option. Devices that are already being used
              as swap are silently skipped.

Revision history for this message
Dimitris Kogias (dimitris-k) said :
#8

Correction, I meant add it manually then activate it with "swapon -a"

Revision history for this message
nakedfakeer (nakedfakeer) said :
#9

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=f91bb02e-ad1c-4ca8-a4cd-9e7aa6d25d91 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda3
UUID=6452abe2-4c9f-4635-8ca8-cd7ddbdd30cf none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0

this is my fstab, i see that the entry is there but not quite the way you said it would be, There is a # before the /dev/sda3 and the swap space is mentioned by the UUID.

swapon -a produces this at the terminal

root@nakedpc:/etc# swapon -a
swapon: cannot stat /dev/disk/by-uuid/6452abe2-4c9f-4635-8ca8-cd7ddbdd30cf: No such file or directory
root@nakedpc:/etc#

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#10

Please copy and paste here the result of this terminal command:

cat /etc/fstab

Thank you

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#11

Sorry wait ok there is already here...

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#12
Revision history for this message
nakedfakeer (nakedfakeer) said :
#13

Thanks marcobra (Marco Braida), that solved my question.

Revision history for this message
nakedfakeer (nakedfakeer) said :
#14

for anybody facing the similar problem, go to the link suggested by marcobra and follow post #23. it works.