Prefer pages_purge_forced() over memset().
This has the dual advantages of allowing for sparsely used large allocations, and relying on the kernel to supply zeroed pages, which tends to be very fast on modern systems.
Please register or sign in to comment