linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* mmap operation
@ 1999-05-10 16:02 Gilles Pokam
  1999-05-10 21:19 ` Stephen C. Tweedie
  0 siblings, 1 reply; 2+ messages in thread
From: Gilles Pokam @ 1999-05-10 16:02 UTC (permalink / raw)
  To: linux-mm

Hi,

I have implemented a module for buffer management in the 2.0.34 linux kernel.
Now i'm using the write and read method for transfering data between the kernel
and user space. I have noticed that the overhead of these 2 operations are 
quite big, because each time a system call is invoked. So i decided to improve 
my module by implementing the mmap operation. The mmap operation works well
when mapping only one page size. But above this size, for example with an order
of at least 1, the later operation fails to work! I have noticed that above
4096 (one page) bytes the zero page is mapped instead! 
Could someone help mee solve this problem ? (i use the nopage operation in my
mmap method and cluster of 16 pages).

Thanks.
       Gilles 
-- 

--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

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

* Re: mmap operation
  1999-05-10 16:02 mmap operation Gilles Pokam
@ 1999-05-10 21:19 ` Stephen C. Tweedie
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen C. Tweedie @ 1999-05-10 21:19 UTC (permalink / raw)
  To: Gilles Pokam; +Cc: linux-mm

Hi,

On Mon, 10 May 1999 18:02:10 +0200 (MET DST), Gilles Pokam
<pokam@cs.tu-berlin.de> said:

> I have implemented a module for buffer management in the 2.0.34 linux
> kernel.  Now i'm using the write and read method for transfering data
> between the kernel and user space. I have noticed that the overhead of
> these 2 operations are quite big, because each time a system call is
> invoked. So i decided to improve my module by implementing the mmap
> operation. The mmap operation works well when mapping only one page
> size. But above this size, for example with an order of at least 1,
> the later operation fails to work! I have noticed that above 4096 (one
> page) bytes the zero page is mapped instead!  Could someone help mee
> solve this problem ? (i use the nopage operation in my mmap method and
> cluster of 16 pages).

The entire VM works by mapping single pages.  It would be a large task
to change this.

--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

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

end of thread, other threads:[~1999-05-10 21:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-10 16:02 mmap operation Gilles Pokam
1999-05-10 21:19 ` Stephen C. Tweedie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox