From jonny@gaia.coppe.ufrj.br  Thu Apr 10 15:49:09 1997
Received: from gaia.coppe.ufrj.br (root@cisigw.coppe.ufrj.br [146.164.2.31])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA05600
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Apr 1997 15:49:08 -0700 (PDT)
Received: (from jonny@localhost) by gaia.coppe.ufrj.br (8.8.5/8.7.3) id TAA13929; Thu, 10 Apr 1997 19:48:59 -0300 (EST)
Message-Id: <199704102248.TAA13929@gaia.coppe.ufrj.br>
Date: Thu, 10 Apr 1997 19:48:59 -0300 (EST)
From: Joao Carlos Mendes Luis <jonny@mailhost.coppe.ufrj.br>
Reply-To: jonny@mailhost.coppe.ufrj.br
To: FreeBSD-gnats-submit@freebsd.org
Subject: xsysinfo stops refreshing and wastes CPU
X-Send-Pr-Version: 3.2

>Number:         3251
>Category:       bin
>Synopsis:       xsysinfo stops refreshing and wastes CPU
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 10 15:50:01 PDT 1997
>Closed-Date:    Tue Jun 8 09:05:45 PDT 1999
>Last-Modified:  Tue Jun  8 09:06:20 PDT 1999
>Originator:     Joao Carlos Mendes Luis
>Release:        FreeBSD 2.1.7-RELEASE i386
>Organization:
Universidade Federal do Rio de Janeiro
>Environment:

	FreeBSD 2.1.7, XFree86 3.2

>Description:

	xsysinfo seens to lose control under high load condition.

>How-To-Repeat:

	- Create a program to eat LOTs of memory, effectively trashing
	the whole system.  This program must disable all limits on
	memory alocation and RSS size.  If necessary, I have such a
	program.
	- Start X and xsysinfo
	- Run the memory eater, eat all RAM your machine have, forcing
	everything to go to swap.
	- xsysinfo stops refreshing, and consumes 100% of your CPU.

>Fix:
	
	I did not look at the sources, but I think it's a problem with
	linked lists acessing /dev/kmem.  NetBSD's identd had this
	problem.

>Release-Note:
>Audit-Trail:

From: Guy Helmer <ghelmer@cs.iastate.edu>
To: freebsd-gnats-submit@freebsd.org, jonny@mailhost.coppe.ufrj.br
Cc:  
Subject: Re: bin/3251: xsysinfo stops refreshing and wastes CPU
Date: Thu, 03 Jun 1999 21:50:43 -0500

 This is an acknowledged problem with all programs that directly access
 kernel data structures.  A proper fix would be to access kernel data via
 /proc or sysctl.  Since this PR is so old, can it be closed?
 
 Guy Helmer
 ghelmer@freebsd.org
 

From: Joao Carlos Mendes Luis <jonny@jonny.eng.br>
To: ghelmer@cs.iastate.edu (Guy Helmer)
Cc: freebsd-gnats-submit@freebsd.org, jonny@coppe.ufrj.br
Subject: Re: bin/3251: xsysinfo stops refreshing and wastes CPU
Date: Mon, 7 Jun 1999 13:48:21 -0300 (EST)

 #define quoting(Guy Helmer)
 // This is an acknowledged problem with all programs that directly access
 // kernel data structures.  A proper fix would be to access kernel data via
 // /proc or sysctl.  Since this PR is so old, can it be closed?
 
   Yes, I think so.  Thanks for your attention.
 
 					Jonny
 
 --
 Joo Carlos Mendes Lus			jonny@jonny.eng.br
   Networking Engineer			jcml@ieee.org
 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Tue Jun 8 09:05:45 PDT 1999 
State-Changed-Why:  
Closed on submitter's request. 
>Unformatted:
