Re: mmap() question

2013-10-13 Thread Dmitry Sivachenko
On 12.10.2013, at 18:14, Konstantin Belousov wrote: >> >> First I tried with some swap space configured. The OS started to swap out >> my process after it reached about 20GB which is also not what I expected: >> what is the reason to swap out regions of read-only mmap()ed files? Is it >>

Re: mmap() question

2013-10-12 Thread Konstantin Belousov
On Sat, Oct 12, 2013 at 04:04:31PM +0400, Dmitry Sivachenko wrote: > > On 12.10.2013, at 13:59, Konstantin Belousov wrote: > > > > I was not able to reproduce the situation locally. I even tried to start > > a lot of threads accessing the mapped regions, to try to outrun the > > pagedaemon. The

Re: mmap() question

2013-10-12 Thread Dmitry Sivachenko
On 12.10.2013, at 13:59, Konstantin Belousov wrote: > > I was not able to reproduce the situation locally. I even tried to start > a lot of threads accessing the mapped regions, to try to outrun the > pagedaemon. The user threads sleep on the disk read, while pagedaemon > has a lot of time to re

Re: mmap() question

2013-10-12 Thread Konstantin Belousov
On Fri, Oct 11, 2013 at 09:57:24AM +0400, Dmitry Sivachenko wrote: > > On 11.10.2013, at 9:17, Konstantin Belousov wrote: > > > On Wed, Oct 09, 2013 at 03:42:27PM +0400, Dmitry Sivachenko wrote: > >> Hello! > >> > >> I have a program which mmap()s a lot of large files (total size more that > >

Re: mmap() question

2013-10-11 Thread Dmitry Sivachenko
On 11.10.2013, at 9:17, Konstantin Belousov wrote: > On Wed, Oct 09, 2013 at 03:42:27PM +0400, Dmitry Sivachenko wrote: >> Hello! >> >> I have a program which mmap()s a lot of large files (total size more that >> RAM and I have no swap), but it needs only small parts of that files at a >> tim

Re: mmap() question

2013-10-10 Thread Konstantin Belousov
On Wed, Oct 09, 2013 at 03:42:27PM +0400, Dmitry Sivachenko wrote: > Hello! > > I have a program which mmap()s a lot of large files (total size more that RAM > and I have no swap), but it needs only small parts of that files at a time. > > My understanding is that when using mmap when I access s

Re: mmap() question

2013-10-09 Thread RW
On Wed, 9 Oct 2013 15:42:27 +0400 Dmitry Sivachenko wrote: > Hello! > > I have a program which mmap()s a lot of large files (total size more > that RAM and I have no swap), but it needs only small parts of that > files at a time. > > My understanding is that when using mmap when I access some me

Re: mmap question

1999-07-06 Thread John Polstra
In article <000101bec73c$e20e3660$291c4...@kbyanc.alcnet.com>, Kelly Yancey wrote: > > Also, in case it hasn't been notice already (I'm running -stable from May > 18th), the mmap(2) manpage has a typo: it has "#include " So what's the typo, exactly? John -- John Polstra

Re: mmap question

1999-07-06 Thread John Polstra
In article <000101bec73c$e20e3660$[EMAIL PROTECTED]>, Kelly Yancey <[EMAIL PROTECTED]> wrote: > > Also, in case it hasn't been notice already (I'm running -stable from May > 18th), the mmap(2) manpage has a typo: it has "#include " So what's the typo, exactly? John -- John Polstra

Re: mmap question

1999-07-05 Thread Matthew Dillon
: Which is fine and dandy, I'll just stat() the file to get the filesize and :mmap() it. But what happens in someone comes along and replaces the file :with :a larger file? I understand that my view of the file will change to the new :file, but only the length that I mmap()ed originally. Do I have

Re: mmap question

1999-07-05 Thread Matthew Dillon
: Which is fine and dandy, I'll just stat() the file to get the filesize and :mmap() it. But what happens in someone comes along and replaces the file :with :a larger file? I understand that my view of the file will change to the new :file, but only the length that I mmap()ed originally. Do I hav