public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Arun Sharma <arun.sharma@intel.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Odd IA32 mmap calls - Is this fixed
Date: Wed, 12 Nov 2003 19:17:32 +0000	[thread overview]
Message-ID: <marc-linux-ia64-106866491021469@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106862063402317@msgid-missing>

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


There is no "safe" solution that I know of. The attached patch will fix this particular problem, but might create new ones. Try it at your own risk.

	-Arun

On 11/11/2003 11:03 PM, Shiju A Mathew wrote:
> Hi,
> The mummap is failing to unmap the pages allocated by
> mmap when a ia32 application ( 4k Pagesize) is run on
> ia64 system( 16k pagesize). This happens when the
> offset  in mmap does not fall on 16k boundary. The
> problem seems to be similar to the problem " Odd IA32
> mmap calls" (Calls to mmap/munmap where the length is
> a fraction of the page size cause a memory leak,
> eventually running out of VM for the IA32 process)
> listed in the ToDo list of ia64 homepage.I am doing
> the test on sles-8 running 2.4.19 kernel. Is this
> problem fixed in the 2.6 test kernel ? If it is not
> fixed are there anyone working on it to fix the
> problem?

[-- Attachment #2: ia32_munmap.patch --]
[-- Type: text/plain, Size: 334 bytes --]

--- linux-2.4.9/arch/ia64/ia32/sys_ia32.c	Tue Feb  5 22:08:20 2002
+++ linux-nk/arch/ia64/ia32/sys_ia32.c	Tue Feb  5 22:18:24 2002
@@ -549,8 +559,8 @@
 	if (start > end)
 		return -EINVAL;
 
-	start = PAGE_ALIGN(start);
-	end = PAGE_START(end);
+	start = PAGE_START(start);
+	end = PAGE_ALIGN(end);
 
 	if (start >= end)
 		return 0;

  reply	other threads:[~2003-11-12 19:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-12  7:03 Odd IA32 mmap calls - Is this fixed Shiju A Mathew
2003-11-12 19:17 ` Arun Sharma [this message]
2003-11-12 19:45 ` n0ano
2003-11-12 19:53 ` Arun Sharma
2003-11-12 20:01 ` n0ano

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=marc-linux-ia64-106866491021469@msgid-missing \
    --to=arun.sharma@intel.com \
    --cc=linux-ia64@vger.kernel.org \
    /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