From owner-linux-mm-www@nl.linux.org Thu Dec  2 10:36:49 1999
Received: by humbolt.nl.linux.org id <S92189AbPLBJgm>;
	Thu, 2 Dec 1999 10:36:42 +0100
Received: from gate.bbcom-hh.de ([195.179.9.146]:4582 "HELO gate.bbcom-hh.de"
        smtp-auth: <none>) by humbolt.nl.linux.org with SMTP
	id <S92166AbPLBJft>; Thu, 2 Dec 1999 10:35:49 +0100
Received: by gate.bbcom-hh.de; id KAA23495; Thu, 2 Dec 1999 10:35:39 +0100
Received: from dosido.bbcom-hh.de(192.168.209.184) by gate.bbcom-hh.de via smap (V4.2)
	id xma023392; Thu, 2 Dec 99 10:34:45 +0100
Received: from bbcom-hh.de (board-nt-pwu [192.168.210.41])
	by dosido.bbcom-hh.de (8.8.8+Sun/8.8.8) with ESMTP id KAA23220;
	Thu, 2 Dec 1999 10:34:51 +0100 (MET)
Message-ID: <38463D38.409EBB61@bbcom-hh.de>
Date:   Thu, 02 Dec 1999 10:34:48 +0100
From:   Peter Wurbs <wurbs@bbcom-hh.de>
X-Mailer: Mozilla 4.61 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To:     linux-mm-www@nl.linux.org
Subject: Limitation of buffer allocation
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mm-www@nl.linux.org
Precedence: bulk
Reply-To: linux-mm-www@nl.linux.org
Return-Path: <owner-linux-mm-www@nl.linux.org>
X-Orcpt: rfc822;linux-mm-www-list

Hi all,

we deal with an streaming application, whereby some streams of data are
received via a high speed network interface card and  written to the
hard disk. Alle data are only written once and later processed.
By means of "vmstat 1" we found out, that all available free memory is
allocated for buffer cache. Allocation starts, when first data are
received and written to the disk. Allocation ends until about 1 MB is
left free.
This kind of allocation is a big problem for the driver of the network
interface card. It allocates memory dynamically by means of "alloc_skb".
If there is a ad-hoc requierement of a bigger memory block, this
function seems to be unable to take away memory from the buffer cache.
Thus alloc_skb returns null pointer, because it must be invoked with
flag "GFP_ATOMIC" (sudden return if there is no memory available). As a
result the driver runs into a faulty deadlocked state.
We work with kernel 2.2.13.
Furthermore we found out that the limitation of memory allocation for
the buffer cache solves the problem. If there is about 2 MB memory left
free for the driver, it never runs into the problem.
We tested some ways to limit buffer allocation:
1)
A tiny user program allocates permanent memory and frees it immediately.
The user program takes the memory from the buffers. Thus it is available
for the driver.
It is straightforward with unknown side effects, but it works.
2)
We changed the values in /proc/sys/vm/freepages.
The min value is the memory space, reserved for the kernel and thus for
the driver. This space can't allocated for buffers.
Increasing the values reserves more space for the kernel. It works too,
and seems to be a fine solution.
3)
We tried to change the values in /proc/sys/vm/buffermem. (Values are
described in /usr/src/linux/Documentation/proc.txt )
But these values dont have any influence on the buffer allocation. Why?

Any comments?

Do you see problems in changing the values in /proc/sys/vm/freepages?
Is there any other solution?

Thanks in advance and bye,


Peter.

-
Linux-mm-www: builders list for the Linux-MM website
Archive:      http://humbolt.nl.linux.org/lists/
Web site:     http://www.linux.eu.org/Linux-MM/

From owner-linux-mm-www@nl.linux.org Fri Dec 10 21:31:04 1999
Received: by humbolt.nl.linux.org id <S92259AbPLJUbB>;
	Fri, 10 Dec 1999 21:31:01 +0100
Received: from kiwi.mail.easynet.net ([195.40.1.40]:9988 "HELO
        kiwi.mail.easynet.net" smtp-auth: <none>) by humbolt.nl.linux.org
	with SMTP id <S92257AbPLJUal>; Fri, 10 Dec 1999 21:30:41 +0100
Received: from pbn-computer (tnt-12-35.easynet.co.uk [212.134.20.35])
	by kiwi.mail.easynet.net (Postfix) with SMTP id 0D593DAF84
	for <linux-mm-www@nl.linux.org>; Fri, 10 Dec 1999 20:30:32 +0000 (GMT)
Message-ID: <000701bf434d$8450e4e0$231486d4@pbn-computer>
From:   "tinahamer" <tinahamer@ukonline.co.uk>
To:     <linux-mm-www@nl.linux.org>
Subject: 
Date:   Fri, 10 Dec 1999 20:31:10 -0000
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0004_01BF434D.7EAEF040"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-linux-mm-www@nl.linux.org
Precedence: bulk
Reply-To: linux-mm-www@nl.linux.org
Return-Path: <owner-linux-mm-www@nl.linux.org>
X-Orcpt: rfc822;linux-mm-www-list

This is a multi-part message in MIME format.

------=_NextPart_000_0004_01BF434D.7EAEF040
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hello just wondered whether you could help me I have t investigate the =
implementation of memory management in Linux or Unix for an assignment.  =
Do you know of any good websites or books etc that could help me in my =
research

Thankyou=20
Tina

------=_NextPart_000_0004_01BF434D.7EAEF040
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>hello just wondered whether you =
could help me I=20
have t investigate the implementation of memory management in Linux or =
Unix for=20
an assignment.&nbsp; Do you know of any good websites or books etc that =
could=20
help me in my research</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Thankyou </FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>Tina</FONT></DIV></BODY></HTML>

------=_NextPart_000_0004_01BF434D.7EAEF040--

-
Linux-mm-www: builders list for the Linux-MM website
Archive:      http://humbolt.nl.linux.org/lists/
Web site:     http://www.linux.eu.org/Linux-MM/

From owner-linux-mm-www@nl.linux.org Sun Dec 12 13:48:37 1999
Received: by humbolt.nl.linux.org id <S92197AbPLLMsX>;
	Sun, 12 Dec 1999 13:48:23 +0100
Received: from voyager.cistron.net ([195.64.68.34]:43020 "EHLO
        voyager.cistron.net" smtp-auth: <none>) by humbolt.nl.linux.org
	with ESMTP id <S92171AbPLLMr5>; Sun, 12 Dec 1999 13:47:57 +0100
Received: from qahwah.cistron.nl (qahwah.cistron.nl [195.64.71.243])
	by voyager.cistron.net (8.9.3/8.9.3/Debian/GNU) with ESMTP id NAA30052;
	Sun, 12 Dec 1999 13:47:59 +0100
Received: by qahwah.cistron.nl (Postfix, from userid 1000)
	id E25FA1A66B; Sun, 12 Dec 1999 13:44:21 +0100 (CET)
Date:   Sun, 12 Dec 1999 13:44:21 +0100
From:   marcel@nl.linux.org (Marcel Harkema)
To:     tinahamer@ukonline.co.uk, linux-mm-www@nl.linux.org
Subject: Re: your mail
Message-ID: <19991212134421.A1369@qahwah.localnet>
Mail-Followup-To: tinahamer@ukonline.co.uk, linux-mm-www@nl.linux.org
References: <000701bf434d$8450e4e0$231486d4@pbn-computer>
Mime-Version: 1.0
Content-Type: multipart/signed; boundary=6TrnltStXW4iwmi0; micalg=pgp-sha1;
	protocol="application/pgp-signature"
User-Agent: Mutt/0.95.5i qahwah
X-Current-Backlog: 45 messages
In-Reply-To: <000701bf434d$8450e4e0$231486d4@pbn-computer>; from tinahamer on Fri, Dec 10, 1999 at 08:31:10PM -0000
Organization: none
Sender: owner-linux-mm-www@nl.linux.org
Precedence: bulk
Reply-To: linux-mm-www@nl.linux.org
Return-Path: <owner-linux-mm-www@nl.linux.org>
X-Orcpt: rfc822;linux-mm-www-list


--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Description: File: /tmp/mutt-qahwah-1369-3
Content-Transfer-Encoding: quoted-printable

Op vrijdag 10 december 1999 rond 20:31 -0000 schreef tinahamer:

> hello just wondered whether you could help me I have t investigate the
> implementation of memory management in Linux or Unix for an assignment.=
=20
> Do you know of any good websites or books etc that could help me in my
> research
>=20
> Thankyou=20
> Tina

  Check out the UVM link on the Linux-MM www links page.  UVM is currently
  used in NetBSD and OpenBSD.  The UVM paper is an excellent read, it also
  refers to other VM papers and VM subsystems of other operating systems.

  You may want to read a book like Modern Operating Systems by Andy
  Tanenbaum too.

  I am working on a MM reference page, including lots of papers.  But that
  won't be finished until late January 2000, since I am currently working on
  my msc. thesis (this is my last month).

  There are more good MM links on Linux-MM, for instance the VM tutorial.

  See http://www.linux.eu.org/Linux-MM/mm-links.html.

  If you find interesting links, please forward them to us, so we can
  include them on the Linux-MM pages.

  Finally, if you make your report available on the web, please let us know
  too, so we can link that.

  Cheers,

         Marcel

--=20
"Beware of bugs in the above code; I have only proved it correct,
 not tried it." --Donald E. Knuth

--6TrnltStXW4iwmi0
Content-Type: application/pgp-signature
Content-Description: PGP signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info and keys see http://www.debian.org/~marcel/

iD8DBQE4U5ikhlpVi2jaDz4RAmTtAJ4u6tfUprEXlYoE22TmlqbN3AQ+EwCeP/kp
IIjvW9tTfWoGq40osic0BcE=
=p7s6
-----END PGP SIGNATURE-----

--6TrnltStXW4iwmi0--
-
Linux-mm-www: builders list for the Linux-MM website
Archive:      http://humbolt.nl.linux.org/lists/
Web site:     http://www.linux.eu.org/Linux-MM/

From owner-linux-mm-www@nl.linux.org Tue Dec 21 06:35:30 1999
Received: by humbolt.nl.linux.org id <S92245AbPLUFfR>;
	Tue, 21 Dec 1999 06:35:17 +0100
Received: from web1202.mail.yahoo.com ([128.11.23.138]:16398 "HELO
        web1202.mail.yahoo.com" smtp-auth: <none>) by humbolt.nl.linux.org
	with SMTP id <S92169AbPLUFex>; Tue, 21 Dec 1999 06:34:53 +0100
Received: (qmail 26626 invoked by uid 60001); 21 Dec 1999 05:31:26 -0000
Message-ID: <19991221053126.26625.qmail@web1202.mail.yahoo.com>
Received: from [210.79.227.224] by web1202.mail.yahoo.com; Mon, 20 Dec 1999 21:31:26 PST
Date:   Mon, 20 Dec 1999 21:31:26 -0800 (PST)
From:   =?gb2312?q?do=20do?= <flygong@yahoo.com>
Subject:  Linux kernel question
To:     linux-mm-www@nl.linux.org
MIME-Version: 1.0
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit
Sender: owner-linux-mm-www@nl.linux.org
Precedence: bulk
Reply-To: linux-mm-www@nl.linux.org
Return-Path: <owner-linux-mm-www@nl.linux.org>
X-Orcpt: rfc822;linux-mm-www-list

Hello croutons:
	I'm a chinese student reading linux
2.0.34 version source code .I meet some question.Mybe
you can help me.My questions :the first,what does the
linux 
memory layout look like?the second question:there a
line
"memory_start = (unsigned long) &_end;"in function of
void setup_arch in linux/arch/i386/kernel/setup.c,what
is 
"_end"? And could you tell me where to find document
aout
these question?
	Thank you !
			you honest friend  gong 99/12/22

	My e_mail:flygong@yahoo.com



__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
-
Linux-mm-www: builders list for the Linux-MM website
Archive:      http://humbolt.nl.linux.org/lists/
Web site:     http://www.linux.eu.org/Linux-MM/

From owner-linux-mm-www@nl.linux.org Tue Dec 21 06:41:00 1999
Received: by humbolt.nl.linux.org id <S92253AbPLUFks>;
	Tue, 21 Dec 1999 06:40:48 +0100
Received: from web1205.mail.yahoo.com ([128.11.23.141]:21509 "HELO
        web1205.mail.yahoo.com" smtp-auth: <none>) by humbolt.nl.linux.org
	with SMTP id <S92169AbPLUFkX>; Tue, 21 Dec 1999 06:40:23 +0100
Received: (qmail 12713 invoked by uid 60001); 21 Dec 1999 05:37:00 -0000
Message-ID: <19991221053700.12712.qmail@web1205.mail.yahoo.com>
Received: from [210.79.227.224] by web1205.mail.yahoo.com; Mon, 20 Dec 1999 21:37:00 PST
Date:   Mon, 20 Dec 1999 21:37:00 -0800 (PST)
From:   =?gb2312?q?do=20do?= <flygong@yahoo.com>
Subject:  Linux kernel question
To:     linux-mm-www@nl.linux.org
MIME-Version: 1.0
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit
Sender: owner-linux-mm-www@nl.linux.org
Precedence: bulk
Reply-To: linux-mm-www@nl.linux.org
Return-Path: <owner-linux-mm-www@nl.linux.org>
X-Orcpt: rfc822;linux-mm-www-list

Hello croutons:
	I'm a chinese student reading linux
2.0.34 version source code .I meet some question.Mybe
you can help me.My questions :the first,what does the
linux 
memory layout look like?the second question:there a
line
"memory_start = (unsigned long) &_end;"in function of
void setup_arch in linux/arch/i386/kernel/setup.c,what
is 
"_end"? And could you tell me where to find document
aout
these question?
	Thank you !
			you honest friend  gong 99/12/22

	My e_mail:flygong@yahoo.com



__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
-
Linux-mm-www: builders list for the Linux-MM website
Archive:      http://humbolt.nl.linux.org/lists/
Web site:     http://www.linux.eu.org/Linux-MM/

