The NEXTSTEP/OpenStep FAQ

! to the table of contents
< to the previous section:
> to the next section:


4.35 System overloaded due to swapping

Swapping CPU overload load

Several people discovered the problem, that their system get's unusable due to swapping. This is extremely bad, because if this swapping occurs, you can't even break the CPU load causing process, because you can't even open a terminal window. There exists a programmed solution to this problem.

Here it is! I should warn you that this will just kill the app --- it will not give you a chance to save files, nor will it bring up a nice panel asking if you really meant to do that. There is no warranty for anything by using this code.

To use it, simple hold down alternate and right click on any window owned by the application or its icon on the dock. This will not kill some apps like Terminal because they run as root.

In order to install it, you will have to edit /usr/lib/NextStep/windowpackage.ps. Make sure that you make a backup of this file before editing it! It is owned by root, so not just anyone can do this.

To apply the patch, search for a line stating: rmdownEvProc (the procedure for processing right mouse button down events), and replace it with the code named examples/windowpackage.patch in the FAQ archive. For NS3.3 this code is located at line 1319.

Disclaimer: you should not attempt this if you do not know what you are doing. You may be unable to log in (you will have to boot single user to restore the windowpackage.ps) if you mess it up. You can kill apps that you did not mean to kill. I cannot be responsible for what happens!

Thanks to David Koski [email protected] for supplying this code.



This document was converted from LaTeX using Karl Ewald's latex2html.