[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#66009: marked as done (32 Mb, but "Sorry, not enough memory" (caused by new kernels sysinfo syscall))



Your message dated 25 Jun 2000 16:36:01 -0400
with message-id <oau2eh33da.fsf@arroz.fake>
and subject line Bug#66009: 32 Mb, but "Sorry, not enough memory" (caused by new kernels sysinfo syscall)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Jun 2000 09:13:20 +0000
>From mrvn@rut.informatik.uni-tuebingen.de Wed Jun 21 04:13:20 2000
Return-path: <mrvn@rut.informatik.uni-tuebingen.de>
Received: from mx01.uni-tuebingen.de [134.2.3.11] 
	by master.debian.org with esmtp (Exim 3.12 2 (Debian))
	id 134gZT-0002i8-00; Wed, 21 Jun 2000 04:13:19 -0500
Received: from rut (rut.Informatik.Uni-Tuebingen.De [134.2.15.134])
	by mx01.uni-tuebingen.de (8.9.3/8.9.3) with ESMTP id LAA15332
	for <submit@bugs.debian.org>; Wed, 21 Jun 2000 11:13:17 +0200
Received: by rut.informatik.uni-tuebingen.de
	via sendmail from stdin
	id <[🔎] m134gZR-000FiYC@rut> (Debian Smail3.2.0.102)
	for submit@bugs.debian.org; Wed, 21 Jun 2000 11:13:17 +0200 (CEST) 
Message-Id: <[🔎] m134gZR-000FiYC@rut>
From: Debian Linux User <mrvn@rut.informatik.uni-tuebingen.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: 32 Mb, but "Sorry, not enough memory" (caused by new kernels sysinfo syscall)
X-Reportbug-Version: 0.54
X-Mailer: reportbug 0.54
Date: Wed, 21 Jun 2000 11:13:17 +0200
Delivered-To: submit@bugs.debian.org

Package: boot-floppies
Version: N/A; reported 2000-06-21
Severity: normal

The problem is that sysinfo has changed with recent kernels:
      Anything before 2.3.16
      (incl 2.2 and earlier) has:

      struct sysinfo {
              long uptime;                    /* Seconds since boot */
              unsigned long loads[3];         /* 1, 5, and 15 minute load averages */
              unsigned long totalram;         /* Total usable main memory size */
              unsigned long freeram;          /* Available memory size */
              unsigned long sharedram;        /* Amount of shared memory */
              unsigned long bufferram;        /* Memory used by buffers */
              unsigned long totalswap;        /* Total swap space size */
              unsigned long freeswap;         /* swap space still available */
              unsigned short procs;           /* Number of current processes */
              char _f[22];                    /* Pads structure to 64 bytes */
      };

      and units of memory items were bytes.  A few fields were added/removed in
      2.3.16 and .17, then the big change happened in 2.3.23 and is with us
      today:

      struct sysinfo {
              long uptime;                    /* Seconds since boot */
              unsigned long loads[3];         /* 1, 5, and 15 minute load averages */
              unsigned long totalram;         /* Total usable main memory size */
              unsigned long freeram;          /* Available memory size */
              unsigned long sharedram;        /* Amount of shared memory */
              unsigned long bufferram;        /* Memory used by buffers */
              unsigned long totalswap;        /* Total swap space size */
              unsigned long freeswap;         /* swap space still available */
              unsigned short procs;           /* Number of current processes */
              unsigned long totalhigh;        /* Total high memory size */
              unsigned long freehigh;         /* Available high memory size */
              unsigned int mem_unit;          /* Memory unit size in bytes */
              char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */
      };

      Now the units returned are essentially pages, and userspace needs to scale
      by mem_unit to get values in bytes.

Now, with 32 MB ram, busybox will add up totalram and totalswap and divide
by 1024 to get the Kb free, which makes it 7 Kb total ram for my system.
In fact I have mem_unit times that much (mem_unit being one page=4Kb).

Some Hardware will need recent kernels, so the busybox should know about the 
changes to sysinfo and act accordingly.

May the Source be with you.
			Goswin

-- System Information
Debian Release: 2.2
Architecture: i386
Kernel: Linux rut 2.2.14 #8 SMP Thu May 18 16:38:50 CEST 2000 i686


---------------------------------------
Received: (at 66009-done) by bugs.debian.org; 25 Jun 2000 20:26:17 +0000
>From adam@onshore.com Sun Jun 25 15:26:17 2000
Return-path: <adam@onshore.com>
Received: from relay03.netaddress.usa.net [204.68.24.183] 
	by master.debian.org with smtp (Exim 3.12 2 (Debian))
	id 136Iyu-0003wk-00; Sun, 25 Jun 2000 15:26:16 -0500
Received: (qmail 26688 invoked from network); 25 Jun 2000 20:26:15 -0000
Received: from dsl-234-232-186-216.cust.dslnetworks.net (HELO arroz.fake) (postfix@216.186.232.234)
  by relay03.netaddress.usa.net with SMTP; 25 Jun 2000 20:26:15 -0000
Received: by arroz.fake (Postfix, from userid 421)
	id 60C9A93802; Sun, 25 Jun 2000 16:36:01 -0400 (EDT)
Sender: apharris@arroz.fake
To: Debian Linux User <mrvn@rut.informatik.uni-tuebingen.de>
Cc: 66009-done@bugs.debian.org
Subject: Re: Bug#66009: 32 Mb, but "Sorry, not enough memory" (caused by new kernels sysinfo syscall)
References: <[🔎] m134gZR-000FiYC@rut>
From: Adam Di Carlo <adam@onshore.com>
Date: 25 Jun 2000 16:36:01 -0400
In-Reply-To: Debian Linux User's message of "Wed, 21 Jun 2000 11:13:17 +0200"
Message-ID: <oau2eh33da.fsf@arroz.fake>
Lines: 10
User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: 66009-done@bugs.debian.org

Debian Linux User <mrvn@rut.informatik.uni-tuebingen.de> writes:

> The problem is that sysinfo has changed with recent kernels:
>       Anything before 2.3.16

Sure, but we just absolutely don't support non 2.2 kernels, period, in
Potato.  Closing this bug.

-- 
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>



Reply to: