[fedora-arm] [PATCH 1/3] rpm: always mlock the rpm database

Kedar Sovani kedars at marvell.com
Thu Dec 11 12:02:14 UTC 2008


On Thu, 2008-12-11 at 08:59 +0000, Russell King wrote:
> On Thu, Dec 11, 2008 at 08:53:27AM +0000, David Woodhouse wrote:
> > On Thu, 2008-12-11 at 12:37 +0530, Kedar Sovani wrote:
> > > Hacky patch that mlock()s rpmdb's environment mmap(2)s, in order to
> > > attempt to avoid spurious rpmdb corruption issues on Linux that seem
> > > to be somehow related to pagein/pageout occuring.
> > 
> > Ick.
> > 
> > No.
> 
> The relevent questions are:
> 
> 1. which kernel version is this occuring with?
> 
> 2. what device is the swap on?
> 
> 3. which drivers are being used?
> 
> If there's problems with paging causing corruption in userspace, it is
> a *serious* issue which can't be fixed by throwing hacks at userspace
> programs.
> 

Hang on.. I recollect seeing this problem with rpm 4.4. Let me see if it
is present in rpm 4.6 as well, or did this patch just creep in.

I'll dig further...


Kedar.




More information about the arm mailing list