Re: Disabling MMAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Jan 14, 2006, at 3:39 PM, Albert Chin wrote:

How do I disable MMAP'ing of RPM database files? I've tried creating
DB_CONFIG in the RPM database directory with:
  set_flags DB_NOMMAP

This should have worked no matter what.

and modified the RPM macros file with:
  %__dbi_cdb create cdb mpool mp_size=1Mb nommap

Neither work.


All the macros do is permit an alternative means to specify flags during open.

This is needed to get YUM working on HP-UX because HP-UX doesn't allow
the same file to be mmap()'ed to multiple address spaces.

I'm using RPM 4.2.4. I could hack the Berkeley DB source but I'm
trying to get away from that.


It's unlikely that you need to change Berkeley DB sources. Likelier
is that the flag DB_NOMMAP is tricky to use correctly, and that rpm
is not doing something correctly. It's impossible to say more without
examining strace and looking at code.

I question the wisdom of a mmap(2) that cannot be shared, but that's yours and HP-UX problem.

73 de Jeff

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux