linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: "Martin Theiß" <mtheiss@neo.wh-stuttgart.de>
Subject: Re: [uml-devel] syscall sysinfo error
Date: Wed, 18 Feb 2004 16:44:01 +0100	[thread overview]
Message-ID: <200402181644.01093.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <20040215163513.GA26606@neo.wh-stuttgart.de>

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

Alle 17:35, domenica 15 febbraio 2004, Martin Theiß ha scritto:
> recently i tried to run debian-installer on a 2.6.2 uml kernel.
> it didn't
> work. i determined the problem has to be the syscall sysinfo. it return
> zeroed values for totalram and totalswap.
0 for total swap is correct in your case, since you do not enable a swap; 0 
for total ram is wrong but has been fixed in the official Uml patch 2.6.3-rc2 
(it seems that it applies well onto 2.6.2; there are two rejects which must 
be ignored). Or better: the patch fixes the 0 value for totalRam in 
/proc/meminfo; that should fix also the sysinfo value, but if it does not, 
just complain again.

If you want to use patch 2.6.1, apply the attached patch on top of that to fix 
things.

>
> Is this a general problem of uml or is it a problem of busybox, which is
> using this method to determine the amount of free memory?
A uml 2.6 (now fixed) bug, which creates problem to anything using this 
(correct) method. It also caused ps u to crash for a division by 0.

Bye
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729

[-- Attachment #2: C-07-Ps_crash_fix.patch --]
[-- Type: text/x-diff, Size: 259 bytes --]

--- 1.21/arch/um/kernel/mem.c   Thu Jan  8 07:43:01 2004
+++ edited/arch/um/kernel/mem.c Mon Jan 26 11:02:13 2004
@@ -30,7 +30,6 @@
 int kmalloc_ok = 0;
 
 static unsigned long brk_end;
-static unsigned long totalram_pages = 0;
 
 void unmap_physmem(void)
 {

      parent reply	other threads:[~2004-02-18 18:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-15 16:35 [uml-devel] syscall sysinfo error Martin Theiß
2004-02-16 20:20 ` Jeff Dike
2004-02-18 15:44 ` BlaisorBlade [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=200402181644.01093.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=mtheiss@neo.wh-stuttgart.de \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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).