You are not logged in.
Hi guys..while surfing in Firefox or Midori my PC frizes. Mouse is unresponsive and slow and if i want to kill the firefox from tty1 it waits for 10 sec after entering the user and 10 sec after entering the password. After killing firefox PC is fast again.
I have:
Architecture: x86_64
Model name: Intel(R) Pentium(R) 4 CPU 3.00GHz
70G freespace.
dmesg doesnt show anything. Is there a way to figure out what couses the frizze.?
Offline
Does your cpu usage or ram usage spike up when this problem occurs?
Offline
How do i check this out..?! Is there a way to log it to text file?
Offline
You can open up top or htop programs and look at it. Should tell you what's eating up ram or cpu. You can run either one from a tty
Offline
Ok..htop shows that memory is 470/490M..and the CPU1 is on 4% and CPU2 on 2%..so this means i dont have enough memory?
Offline
So it isn't locked up, just slow to a crawl.
512M of RAM is sorta minimal these days. You'll be fine with fluxbox, not with KDE and Firefox opening multiple tabs. What desktop environment or window mgr are you using? Also do you have other things open when it happens. Firefox is a hog. If you are swapping then things will slow down.
Here is before and after Firefox launch, no web page open yet.
free
total used free shared buffers cached
Mem: 1924812 1592056 332756 0 29476 1304288
-/+ buffers/cache: 258292 1666520
Swap: 979928 0 979928free
total used free shared buffers cached
Mem: 1924812 1823604 101208 0 29980 1369368
-/+ buffers/cache: 424256 1500556
Swap: 979928 0 979928You'll need to run top when the problem is happening, see if something has the CPU at 99%. Also see if the machine is swapping. If the machine is swapping to the hard drive then the solution is more RAM, smaller window mrg, lighter browser, javascript off, images off, etc.
Having the swap partition at the start of the drive will help a little too.
You can run Firefox with a light window mgr and 512MB RAM on a P4 with OK results.
Offline
This computer is at my collage so students want to surf..they use facebook, gmail and youtube at most..i put mate as DE and slim as login manager.
Offline
Ok..htop shows that memory is 470/490M..and the CPU1 is on 4% and CPU2 on 2%..so this means i dont have enough memory?
When you kill midori or firefox and the computer works correctly again does the ram go way down? If so then ram is probably your issue. Try changing from mate desktop to something like fluxbox or openbox. If all you really need is a web browser for these guys it shouldn't matter too much. Just throw up a panel with some shortcuts on it and you should be okay.
Offline
Ok..i will try it out..
It starting to be complicated when they ask me "where is my USB stick"..:)
Offline
Ok..i will try it out..
It starting to be complicated when they ask me "where is my USB stick"..:)
Yeah I get it. I have a similar situation over here. Just put another icon shortcut for thunar or something so they can get to their files.
Offline
It starting to be complicated when they ask me "where is my USB stick"
I can give you some fluxbox examples to make life easier.
Manual mounting - unmounting in fluxbox for usb and optical media is easy. And you won't have all of the problems that auto mounting sometimes give. Make a mounting place in the users home directory, make a few menu items like for example
~/.fluxbox/menu
[exec] (Sleep) {sudo systemctl suspend}
[exec] (Shutdown) {sudo systemctl poweroff}
[exec] (Reboot) {sudo systemctl reboot}
[exec] (DVD Mount) {sudo mount /dev/sr0 ~/dvdburner}
[exec] (DVD Unmount) {sudo umount ~/dvdburner}
[exec] (Check USB File System) {sudo parted -l}
[exec] (Find USB Drive) {xterm -e "lsblk; bash"}
[exec] (USB sdb FAT Mount) {sudo mount -t vfat /dev/sdb1 ~/usb}
[exec] (USB sdc FAT Mount) {sudo mount -t vfat /dev/sdc1 ~/usb}
[exec] (USB drive NTFS Mount) {sudo ntfs-3g /dev/sdb1 ~/usb}
[exec] (USB drive Unmount) {sudo umount ~/usb}If you don't want passwordless sudo then keep track of them, and allow them to enter password with something like
[exec] (DVD Mount) {sudo xterm -fg black -bg yellow -g 40x10 -T "Mount DVD" -e mount /dev/sr0 ~/dvdburner}
[exec] (DVD Unmount) {sudo xterm -fg black -bg yellow -g 40x10 -T "UnMount DVD" -e umount ~/dvdburner}Or if you are allowing user to mount - umount, then you don't need sudo at all.
Here are some fluxbox shortcut keys examples
~/.fluxbox/keys
Mod4 r :Exec rox
Mod4 e :Exec spacefm
Mod4 c :Exec claws-mail
Mod4 t :Exec thunderbird
Mod4 m :Exec midori
Mod4 s :Exec sudo systemctl suspend
Mod4 o :Exec sudo systemctl poweroff
Mod4 d :ShowDesktop
Control Escape :RootMenuMod4 is the key with the windows symbol on it. Mod4 + d will minimize all windows, do it again they return. The last one allows you to get fluxbox root menu without a mouse.
You can lighten a machine and make it do what you want without a huge desktop environment.
Offline