[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: LMDB mmap usage
- To: Howard Chu <hyc@symas.com>
- Subject: Re: LMDB mmap usage
- From: Kristoffer Sjögren <stoffe@gmail.com>
- Date: Sat, 6 Feb 2016 18:44:41 +0100
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=7FKc40pKXyrXd4RI2cPnJ1fOJrV0gG/Gr0j5EDcxH60=; b=Q93xycc5g8lXuiNXNvU7J5/hX6KBq7DpVLDP+RB2iOMv7fq3mLze7O9FAHDmaNlPai /DitlXrLQ+8ALDrTBSCth7I2plneHPPX1wr94UEBDffRToCAQdos4jiOUtDpcw9bZpAn rsoPDfoZ8I60zi3WpsSsp0d5WGbAPovCsknUeTYjBbef78/xTAzFL0Fnc6aNOeLtnbkl aEM4BQxcZBmpnJx3Ke1Al7upGL0eWuFkMHm96VhZRXdkbavdwrMcKa3MXYVimsfS4PKY np9XeBMoSy2rHxidJ69aRo3f5DynqiJJolrtfS6l8lDatrPGczxQShOZLg0/CICOjsI2 jOZw==
- In-reply-to: <56B62376.2080603@symas.com>
- References: <CADSBNAgx3cujsogaqV6CDTfiT1BCjZOMTpzOO2jCASh34XCp-A@mail.gmail.com> <56B5152C.2090105@symas.com> <CADSBNAjG0Wd5pJocSj3y21Ed_=QE2=gQuE0xBWARrQPBVF22=Q@mail.gmail.com> <56B62376.2080603@symas.com>
I'm not looking for fairies :-) I was just curious exactly how mmap
interacts with the OS in order to understand performance metrics
better.
On Sat, Feb 6, 2016 at 5:46 PM, Howard Chu <hyc@symas.com> wrote:
> Kristoffer Sjögren wrote:
>>
>> Thanks Howard. What's the best documentation on mmap you know, aside
>> from read kernel source code?
>
>
> Not sure what you're asking. Read the mmap(2) manpage and its related pages.
> If you're thinking there's something fancy hidden in there for you to take
> advantage of, I don't think you should be using mmap in the first place.
>
>
>> On Fri, Feb 5, 2016 at 10:33 PM, Howard Chu <hyc@symas.com> wrote:
>>>
>>> Kristoffer Sjögren wrote:
>>>>
>>>>
>>>> Hi
>>>>
>>>> Our application do lots of caching using vmtouch, up to a point where
>>>> there isn't a lot of memory left on the machine. We would like to use
>>>> LMDB on the same machine to store around 40GiB data of a few hundred
>>>> million entries.
>>>>
>>>> How can we best understand the interaction and behavior of the OS
>>>> cache and sharing of memory between processes? Is LMDB doing something
>>>> to help the OS?
>>>
>>>
>>>
>>> Nope, LMDB does nothing special with its mmap.
>>>
>>> --
>>> -- Howard Chu
>>> CTO, Symas Corp. http://www.symas.com
>>> Director, Highland Sun http://highlandsun.com/hyc/
>>> Chief Architect, OpenLDAP http://www.openldap.org/project/
>>
>>
>
>
> --
> -- Howard Chu
> CTO, Symas Corp. http://www.symas.com
> Director, Highland Sun http://highlandsun.com/hyc/
> Chief Architect, OpenLDAP http://www.openldap.org/project/