Re: [PATCH] xfs: stop using the page cache to back the buffer cache

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

 



On Fri, Mar 11, 2011 at 05:16:42AM -0500, Christoph Hellwig wrote:
> > +		if (((unsigned long)(bp->b_addr + bp->b_buffer_length - 1) &
> > +								PAGE_MASK) !=
> > +		    ((unsigned long)bp->b_addr & PAGE_MASK)) {
> > +			/* b_addr spans two pages - use alloc_page instead */
> > +			kmem_free(bp->b_addr);
> > +			bp->b_addr = NULL;
> > +			goto use_alloc_page;
> > +		}
> 
> Did you manage to hit this case?  If it happens with any frequency under
> real workloads we really need to find a wayto avoid the allocation to
> start with.

It's the replacement for the assert that you managed to trigger in
the previous version. The assert fired if the returned memory
spanned two pages, so this is catching and handling that case if it
ever occurs. No, I haven't sen it trip, but then again I only ever
saw the previous assert fire once and was never able to reproduce
it.

I'd prefer to leave it there as a definsive mechanism, especially if
the kernel grows a new SLxB allocator with different behaviour...

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux