[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-usability
Subject: Re: improved Crash Dialog needed
From: Michael Pye <mp () fuckmicrosoft ! com>
Date: 2002-08-24 9:12:14
[Download RAW message or body]
On Saturday 24 August 2002 10:07 am, Ryan Cumming wrote:
> Okay, here's my plan:
> We start a tiny, non-KDE daemon. This daemon would be sort of a watchdog,
> waking up every few seconds to make sure the computer is all right. This
> would involve checking if any process has obviously "run away" to the point
> of making the computer unresponsive. "Run away" could be defined as a
process
> using an unreasonable amount of memory and/or CPU time, when other programs
> are obviously contending for those resources.
>
> If the computer isn't okay, we pop up a dialog. This dialog would give the
> user the option of terminating the application, or ignoring the potential
> problem. See http://completely.kicks-ass.org/watchdog-mockup.png for an idea
> of what that dialog could look like.
>
> This is one case where the devil is definitely in the details. The daemon,
> dialog, and X-server would be susceptible to the same resource drain that is
> affecting the rest of the computer. One solution would be for the daemon to
> run at a realtime priority, with all of its memory mlock()'ed in place. When
> it encountered a potential trouble process, it would immediately SIGPAUSE
it.
> This should (temporarily) relieve the resource contention that the process
> was causing, allowing the computer to become at least somewhat responsive
> again.
>
> At this point the daemon would launch the dialog process with an elevated
> priority (nice level of -19). Depending on the result of the dialog process,
> the realtime daemon will either SIGCONT the process and allow it to
continue,
> or SIGKILL in to oblivion.
>
> Comments?
How often would gcc trigger this? Particularly if I am working at the same
time...
--
MP
_______________________________________________________________
Linux gremlin 2.4.19-gentoo-r7 i686 AuthenticAMD
10:10am up 32 min, 1 user, load average: 0.04, 0.06, 0.07
_______________________________________________
kde-usability mailing list
kde-usability@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-usability
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic