Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 2010 23:05:10 +0100 (CET)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-x11@FreeBSD.ORG
Subject:   Re: Using XOrg on a FreeBSD Server
Message-ID:  <201011162205.oAGM5Awn090978@lurza.secnetix.de>
In-Reply-To: <201011162001.oAGK14F7065027@fire.js.berklix.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian H. Stacey <jhs@berklix.com> wrote:
 > Some older servers have little memory.  X servers hog memory:
 >         Some have memory leaks I've heard, 
 >         mine just starts bloated, `top` shows SIZE=167 Meg,
 >         RES=73548K, but doesn`t leak worse after that.

Here's mine:

 PID USERNAME THR PRI NICE  SIZE   RES  STATE  C TIME  WCPU COMMAND
1273 root       1  44    0  312M  274M  select 1 4:20 0.00% Xorg

But it doesn't actually use that much RAM, because the
process contains multiple mappings of the frame buffer
and other device memory.  According to procstat(1) and
a bit of awk (*), the device mappings are 290 MB, so
only 22 MB are left, which isn't really that huge (this
box has 4 GB RAM).

Best regards
   Oliver

(*)
# procstat -v 1273 \
  | awk '$10 == "dv" {s += $3 - $2} END {print s / 1048576}'
289.828

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"The most important decision in [programming] language design
concerns what is to be left out."  --  Niklaus Wirth



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011162205.oAGM5Awn090978>