[Linux Memory]slab Dispenser Learning Note (ii)--slab coloring

Source: Internet
Author: User

Slab Coloring Principle

Slab principle, CPU cache

One, slab coloring principle

Slab allocator uses a lot of cache, each cache contains a lot of slab, each slab a lot of objects, each slab the head to manage the objects in the slab (such as which objects have been used, which objects have not been used, etc.), At the beginning and end of each object in the slab, there is a specific partition populated with specific data, so that if the data and pre-populated non-conformance can prove that the memory area has been incorrectly modified, the individual slab members of the cache will specify a different offset in order to locate it in different cache rows. When assigning and releasing slab, the object is populated with a predefined pattern.

[Linux Memory]slab Dispenser Learning Note (ii)--slab coloring

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.