From: Floyd Davidson <floyd@ptialaska.net> Subject: Re: Linux multitasking Date: 29 Mar 2002 12:28:21 -0900 References: <3CA4927A.5050700@sandia.gov> "Christopher R. Carlen" <crcarle@sandia.gov> wrote: >Hi: > >I would like to understand why I experience certain kinds of behavior >using Linux. I have Suse 7.3 with 2.4.10. >I find that it is possible running programs in X, particularly Netscape, >that the program can get stuck. When it does this, the pointer will not > operate on X. That is, if I try to move out of Netscape's window I >can do so, but then no other applications respond either. The KDE panel >doesn't respond. Nothing. Not until Netscape recovers, or I kill it by >going to a console (the keyboard fortunately responds).
[big snip]
Richard Pitt provided a rather detailed look at what Linux does
and how the behavior you see happens.
But I think it may have masked some practical answers on what to
do about it.
I can't be sure if your system really is cpu bound, or if it is
just simply being forced into paging by a lack of RAM. Either
one could cause what you describe, and in particular Netscape
and KDE are both resource hogs that lead to either or both
problems.
Netscape in particular has a bug that occasionally causes it to
just suck up all the available virtual memory a system has. But
regardless, if your system doesn't have enough RAM it will be
paging things out to swap space. Of course, if you run out of
swap space too, then things *really* look wedged!
The most obvious solution, is to run xsysinfo or xosview and
watch what is going on when your box emulates a glacier. If it
needs more RAM or more swap, you won't have to guess.
But in the long run there is one other way to help avoid this too. Dual processor motherboards, and relatively inexpensive cpu's to go in them, are commonly available. Two cpu's at some given speed simply will not run single threaded programs at twice the speed of a single cpu... but, while wedging one cpu may be common, wedging two isn't. That means keyboard responsiveness is percieved to be much better with multi-processor systems. So is X, because at any given time X will be on one cpu and the cpu intensive program you run will be on the other cpu. My firewall and my laptop aren't SMP boxes, put it that way. -- Floyd L. Davidson <http://www.ptialaska.net/~floyd> Ukpeagvik (Barrow, Alaska) floyd@barrow.com
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar