On Mon, Jul 13, 2015 at 06:34:42PM +0900, Sergey Senozhatsky wrote: > Yes. 'Nice' used in a sense that drivers have logic to release the > memory anyway; mm asks volunteers (the drivers that have registered > shrinker callbacks) to release some spare/wasted/etc. when things > are getting tough (the drivers are not aware of that in general). > This is surely important to mm, not to the driver though -- it just > agrees to be 'nice', but even not expected to release any memory at > all (IOW, this is not a contract).
Not registering the shrinker is a plain and simple memory leak. Just like a missing free your driver will appear to work fine for a while, but eventually the leaks will bring down the whole system including your driver. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/