memory management
Mar. 24th, 2005 02:38 pmIn my experience, Linux is as bad as Windows. I'm routinely having to wait 5 minutes for my screen to process a simple "minimize" click.
What the hell is my computer doing that's keeping it so busy? My guess is it's swapping memory with the HD, since this only happens when I have "too many" things open.
Another solution would be to save the inactive current processes to the HD, free up the memory, and *only* load them up when requested (instead of juggling things around all the time).
Does anyone know how to turn off memory swapping? I would prefer to get an error message: "memory is full". Does anyone know which process corresponds to the screen / user input, so I can up its priority?
Why is the software of today still oblivious to the user's experience?
What the hell is my computer doing that's keeping it so busy? My guess is it's swapping memory with the HD, since this only happens when I have "too many" things open.
Another solution would be to save the inactive current processes to the HD, free up the memory, and *only* load them up when requested (instead of juggling things around all the time).
Does anyone know how to turn off memory swapping? I would prefer to get an error message: "memory is full". Does anyone know which process corresponds to the screen / user input, so I can up its priority?
Why is the software of today still oblivious to the user's experience?
(no subject)
Date: 2005-03-24 02:32 pm (UTC)I am always surprised by that...
Date: 2005-03-24 04:46 pm (UTC)I am a Linux newbie though, so I assumed that I had something set incorrectly.
(no subject)
Date: 2005-03-24 03:17 pm (UTC)Linux probably faces the opposite problem: they have such a more experienced and smaller user base, that they probably don't feel they need to invest as much time in studying user experience. They figure that computer experts don't want to be coddled. This slightly elitist "we don't need to be pandered with fancy user improvements" view prevents even useful user interface improvements from being implemented (or even worked on).
Perhaps Macs should be applauded for falling somewhere in between? Although they are beginning to follow the Windows track.
(no subject)
Date: 2005-03-25 12:14 pm (UTC)But what I meant was more like AI question: "why don't these systems have a model of the person behind the computer?"
While I don't want computers interfering with my decisions,
While the experienced user doesn't want the computer interfering with what he sees because he wants his actions to be predictable (we hate too much automation), decisions about memory management should be delegated to the system: they are fair game because they don't affect the structure of the "virtual world" that the user sees.
Also, I hold that "user-friendly vs. powerful" is a false dichotomy.
(no subject)
Date: 2005-03-24 03:36 pm (UTC)Your swap partition has a device name such as "/dev/hda2". Use this in combination with the "swapoff" and "swapon" commands to turn this partition on or off.
(no subject)
Date: 2005-03-25 11:57 am (UTC)(no subject)
Date: 2005-03-25 12:42 pm (UTC)(no subject)
Date: 2005-03-26 10:23 am (UTC)please?
I don't have the swapon / swapoff commands in my system.
(no subject)
Date: 2005-04-12 07:55 am (UTC)Any other suggestions to reduce thrashing are welcome too!
(no subject)
Date: 2005-03-24 05:23 pm (UTC)ps -ef (will tell you the processes that are running, mem used, cpu used, time it ran, etc)
top (you may need to install this separately, it has a dynamic refresh of processes)
sar (install separately, this is a sysadmin utility which logs cpu load over time)
mrtg (install separately, this creates graphs of cpu load and other system parameters over time)
Probably as far as user experience goes, MAC OS X is by far the best of all worlds.
(no subject)
Date: 2005-03-24 06:01 pm (UTC)I'll look into these tools. Thanks.
What I'm looking for is a tool that will show me which process is so busy.
(no subject)
Date: 2005-03-24 07:02 pm (UTC)19:51:31 up 14 days, 2 min, 2 users, load average: 0.04, 0.11, 0.20
192 processes: 190 sleeping, 1 running, 1 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 0.0% 0.0% 1.5% 0.0% 0.0% 0.0% 98.4%
Mem: 506532k av, 502156k used, 4376k free, 0k shrd, 11820k buff
234364k active, 238888k inactive
Swap: 1012084k av, 606476k used, 405608k free 30532k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
29142 root 17 0 1320 1320 896 R 1.7 0.2 0:00 0 top
1 root 16 0 412 384 356 S 0.0 0.0 0:08 0 init
I only copied the first two processes, out of 192. The "load average" showing values under 1 means everything is A-OK. If I wanted to track down some intermittent CPU load issue, I could log top output to a file to take 20-second interval snapshots of the system processes.
Come to think of it, what I really mistrust in Linux is that if you crash the filesystem you end up having to re-install. Fortunately it doesn't happen often. :-)
(no subject)
Date: 2005-03-24 10:41 pm (UTC)Oh, and buy more RAM -- it's cheaper than a Windows license.
(no subject)
Date: 2005-03-26 01:06 am (UTC)Kill the swap space, and you'll probably get an error return on a process or two, which may be nothing more than a number representing an "out of memory error". The memory hog itself may cause another app to die before it kills itself, or it may back off on the memory grabbing, letting others die around it; depends on the coders.
If it's not a configuration error, and it is just a memory overuse, then having more physical memory is the best responce.
(no subject)
Date: 2005-03-26 10:21 am (UTC)(no subject)
Date: 2005-03-26 07:10 pm (UTC)Your suggestion for saving things to the HD is basically what swapping does. The only difference seems to be in the application being fully inactive until the user (you) reactivates it, instead of waking up to do trivial little things. Sounds like an application level edit to me.
I don't know what you're running, but does your OS allow you to manually "Pause" a process?