Re: [PATCH v2 0/3] staging: zcache: xcfmalloc support

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

 



Hi Dave,

On 10/03/2011 11:59 AM, Dave Hansen wrote:

> 
> I've been reading through Seth's patches a bit and looking over the
> locking in general.  I'm wondering why preempt_disable() is used so
> heavily.  Preempt seems to be disabled for virtually all of zcache's
> operations.  It seems a bit unorthodox, and I guess I'm anticipating the
> future screams of the low-latency folks. :)
> 
> I think long-term it will hurt zcache's ability to move in to other
> code.  Right now, it's pretty limited to being used in conjunction with
> memory reclaim called from kswapd.  Seems like something we ought to add
> to the TODO list before it escapes from staging/.
> 


I think disabling preemption on the local CPU is the cheapest we can get
to protect PCPU buffers. We may experiment with, say, multiple buffers
per CPU, so we end up disabling preemption only in highly improbable
case of getting preempted just too many times exactly within critical
section. But before we do all that, we really need to come up with cases
where zcache induced latency is/can be a problem.

Thanks,
Nitin

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]