9front - general discussion about 9front
 help / color / mirror / Atom feed
* memory usage of installer
@ 2011-06-16 11:51 suharik
  2011-06-16 12:12 ` cinap_lenrek
  0 siblings, 1 reply; 11+ messages in thread
From: suharik @ 2011-06-16 11:51 UTC (permalink / raw)
  To: 9front

Installer ruins by OOM in a system (qemu) with 196MB RAM.
It is NOT ok.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: memory usage of installer
  2011-06-16 11:51 memory usage of installer suharik
@ 2011-06-16 12:12 ` cinap_lenrek
  2011-06-16 14:15   ` suharik
  0 siblings, 1 reply; 11+ messages in thread
From: cinap_lenrek @ 2011-06-16 12:12 UTC (permalink / raw)
  To: 9front

i doubt this is the installers fault.

the biggest memory consumer in 9front is cwfs right now. it
uses a /4 of the available user memory for its block cache.

cwfs was once kenfs, a kernel that had the whole machine
for itself, so it preallocated all the sturcures it needed
and then used all the rest of the ram for this block cache.

finding a good ratio is a hard problem.

can cat /dev/swap (from the live cd) and tell us the numbers?

--
cinap

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: memory usage of installer
  2011-06-16 12:12 ` cinap_lenrek
@ 2011-06-16 14:15   ` suharik
  2011-06-16 14:47     ` cinap_lenrek
  2011-06-16 16:16     ` cinap_lenrek
  0 siblings, 2 replies; 11+ messages in thread
From: suharik @ 2011-06-16 14:15 UTC (permalink / raw)
  To: 9front

> can cat /dev/swap (from the live cd) and tell us the numbers?
I can't it right now, but can say that OOM happens during copydist
stage.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: memory usage of installer
  2011-06-16 14:15   ` suharik
@ 2011-06-16 14:47     ` cinap_lenrek
  2011-06-16 16:16     ` cinap_lenrek
  1 sibling, 0 replies; 11+ messages in thread
From: cinap_lenrek @ 2011-06-16 14:47 UTC (permalink / raw)
  To: 9front

yep, thats plausible. i'm looking into where cwfs allocates his memory.
we have a fixed overhead of arround 13MB that is not taken into account
in that sysmem/4 formula.

i'm still not sure why it allocates more memory at runtime. the only
place right now where this could happen are message buffers.

more analyzing is required before action can be taken.

--
cinap

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: memory usage of installer
  2011-06-16 14:15   ` suharik
  2011-06-16 14:47     ` cinap_lenrek
@ 2011-06-16 16:16     ` cinap_lenrek
  2011-06-16 18:09       ` cinap_lenrek
  1 sibling, 1 reply; 11+ messages in thread
From: cinap_lenrek @ 2011-06-16 16:16 UTC (permalink / raw)
  To: 9front

ok, cwfs memory seems to be constant. looks like a leak in libdisk/proto...


--
cinap

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: memory usage of installer
  2011-06-16 16:16     ` cinap_lenrek
@ 2011-06-16 18:09       ` cinap_lenrek
  2011-06-16 18:45         ` cinap_lenrek
  0 siblings, 1 reply; 11+ messages in thread
From: cinap_lenrek @ 2011-06-16 18:09 UTC (permalink / raw)
  To: 9front

there was also a leak in 9660srv that would leak
memory if one walk(5)s to a non existing file.

(this happens all the time on the livecd as its
mounted at /)

--
cinap

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: memory usage of installer
  2011-06-16 18:09       ` cinap_lenrek
@ 2011-06-16 18:45         ` cinap_lenrek
  2011-06-16 20:47           ` suharik
  0 siblings, 1 reply; 11+ messages in thread
From: cinap_lenrek @ 2011-06-16 18:45 UTC (permalink / raw)
  To: 9front

ok, fixed and tested.

there where 2 bugs, one in libdisk/proto and one in 9660srv.

now the memory graph is flat while installing (tested in vmware
with 128MB ram)

http://code.google.com/p/plan9front/source/detail?r=d932b39ebe0ebfe2e5a191c169ff04dd93a693ee
http://code.google.com/p/plan9front/source/detail?r=df5e15b2d1a05b939af3d148764f22664eaaa8ec

new iso 9front-20110616 is up.

many thanks for reporting this issue.

--
cinap

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: memory usage of installer
  2011-06-16 18:45         ` cinap_lenrek
@ 2011-06-16 20:47           ` suharik
  2011-06-16 23:46             ` cinap_lenrek
  0 siblings, 1 reply; 11+ messages in thread
From: suharik @ 2011-06-16 20:47 UTC (permalink / raw)
  To: 9front

> new iso 9front-20110616 is up.
Mmm... link?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: memory usage of installer
  2011-06-16 20:47           ` suharik
@ 2011-06-16 23:46             ` cinap_lenrek
  2011-06-16 23:49               ` ron minnich
  0 siblings, 1 reply; 11+ messages in thread
From: cinap_lenrek @ 2011-06-16 23:46 UTC (permalink / raw)
  To: 9front

http://9hal.ath.cx/usr/cinap_lenrek/9front.torrent

--
cinap

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: memory usage of installer
  2011-06-16 23:46             ` cinap_lenrek
@ 2011-06-16 23:49               ` ron minnich
  2011-06-17  2:44                 ` Iruatã Souza
  0 siblings, 1 reply; 11+ messages in thread
From: ron minnich @ 2011-06-16 23:49 UTC (permalink / raw)
  To: 9front

anyone done a usb install?

ron

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: memory usage of installer
  2011-06-16 23:49               ` ron minnich
@ 2011-06-17  2:44                 ` Iruatã Souza
  0 siblings, 0 replies; 11+ messages in thread
From: Iruatã Souza @ 2011-06-17  2:44 UTC (permalink / raw)
  To: 9front

On Thu, Jun 16, 2011 at 8:49 PM, ron minnich <rminnich@gmail.com> wrote:
> anyone done a usb install?
>
> ron
>

http://code.google.com/p/plan9front/wiki/usbboot

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-06-17  2:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16 11:51 memory usage of installer suharik
2011-06-16 12:12 ` cinap_lenrek
2011-06-16 14:15   ` suharik
2011-06-16 14:47     ` cinap_lenrek
2011-06-16 16:16     ` cinap_lenrek
2011-06-16 18:09       ` cinap_lenrek
2011-06-16 18:45         ` cinap_lenrek
2011-06-16 20:47           ` suharik
2011-06-16 23:46             ` cinap_lenrek
2011-06-16 23:49               ` ron minnich
2011-06-17  2:44                 ` Iruatã Souza

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).