9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: andrey mirtchovski <mirtchov@cpsc.ucalgary.ca>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] hungry fossil?
Date: Mon, 27 Dec 2004 07:58:39 -0700	[thread overview]
Message-ID: <364251d5dc9d613148fcfc05cbfee1fb@plan9.ucalgary.ca> (raw)
In-Reply-To: <ACCF003CBA3D09458207DB0CB86AD17D0663BF@XMAIL.asuch.cas.cz>

[-- Attachment #1: Type: text/plain, Size: 699 bytes --]

those are threads, so they share the memory (i.e.  you shouldn't add
them together).  in this case fossil appears "hungry" because it uses
most of the memory it occupies for cache, selected by the -c option to
open in its config.

attached is a hastily put together script that gives you the memory
used on your computer in readable form.

andrey

> hi,
> i use fossil as my fs on both thinkpad t23 and desktop standalone installations.
> strangely, fossil uses >10 processes taking over 250megs of RAM
> am i missing something? or is it ok and should i use kfs instead?
> is kfs to be continued, or abandoned  in the future?
>  
> thanks, regards, and PF 2005,
>  
> ++pac.
>  

[-- Attachment #2: mem --]
[-- Type: text/plain, Size: 446 bytes --]

#!/bin/rc

# show available and used memory in
# user-discernible format.

all=`{cat /dev/swap | sed 's,/, ,g'}

# 4096/(1024*1024)
pageinmb=0.00390625 

mem = `{echo $all(1)^'*'^$pageinmb | hoc }
memtotal = `{echo $all(2)^'*'^$pageinmb | hoc}
swap = `{echo $all(4)^'*'^$pageinmb | hoc }
swaptotal = `{echo $all(5)^'*'^$pageinmb | hoc}

echo memory: $mem MB used. $memtotal MB total
echo swap: $swap MB used. $swaptotal MB total

      reply	other threads:[~2004-12-27 14:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-27 13:25 cej
2004-12-27 14:58 ` andrey mirtchovski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=364251d5dc9d613148fcfc05cbfee1fb@plan9.ucalgary.ca \
    --to=mirtchov@cpsc.ucalgary.ca \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).