Linux2.6.22 released

Source: Internet
Author: User
Linux2.6.22 was released-general Linux technology-Linux programming and kernel information. The following is a detailed description. After nearly two months of intense development, Linus finally released the 2.6.22 Linux kernel.

Like the previous 2.6 Kernel, this Kernel also contains many interesting features and updates, which are described in more detail on Kernel Newbies. I select some content that I am interested in for simple analysis:

SLUB memory distributor: after a long silence on the memory management part, it enters the active development stage. This improvement mainly aims at: The current Slab Memory Management Code is obscure, it is not easy to maintain. This is also the reason why the memory management has never been "daring", but it does work well all the time. The complicated part is not only the Code but also the data structure it uses, A large number of linked lists and Slab metadata occupy a large amount of memory space, which is especially serious in "large" systems. These complexities also make it difficult to recycle memory. Finally, someone jumped out to accept this challenge. His countermeasure was the SLUB memory allocation system. SLUB not only simplifies Slab code, but also improves the data structure it uses, avoiding unnecessary memory consumption and improving space utilization. Of course, the time efficiency is also greatly improved: 5-10%, and these are invisible to users (kernel developers) because they retain the original Slab API.

Krealloc: for user space C programmers, realloc should be no stranger. Yes, krealloc is the corresponding kernel version, which can increase or reduce the dynamically applied memory space, try not to re-allocate the memory space and reduce the internal fragmentation to a certain extent.

Quicklist: Sometimes the Slab memory management method seems heavy, so the kernel developers have invented the page-oriented memory management method, the cache mechanism based on the percpu one-way list reduces the overhead of repeatedly calling _ get_free_page and free_page.

Asynchronous encryption API: the implementation method of this API is interesting. It uses an encryption daemon (cryptd) to asynchronize the originally synchronized encryption operation. In fact, Asynchronization and synchronization can be converted to each other. In this example, the aio simulation library in glibc and the ongoing Kernel Asynchronous event interface syslets can be used. In addition, syslets seems to be dominant, and the multi-core Dongfeng multithreading era has been quietly pushed...

Cancel_work_sync (): canceling a synchronization task is a product of this refactoring workqueue. It should be very useful, just like canceling a timer synchronously. del_timer_sync () same. If there is any addition, there will be deletion. The unfortunate ghost of this time is run_scheduled_work ().

Defered Timer: it is part of an environmental protection and energy-saving project, reflecting the global climate concerns of Linux kernel programmers, reducing power consumption also increases the endurance of mobile devices such as laptops. How does it work? This starts with Dynamic Tick. It can be used to cancel the timer as the heartbeat of the operating system when the system has no load, so that the system enters the "Shock" state, this reduces the energy consumption of the system. In the next shock process, if an interruption occurs, the system will be awakened. the interruption may be the interruption of the latest timer set before the system shock or other, however, not all timers have strict time limits. If a timer can be postponed, the wake-up operation is not necessary, so the concept of the timer can be postponed... in addition, similar jobs are defined in the work queue.

Signal/timer event notification: In the end, signalfd/timerfd enters the Linux kernel, and kernel maintenance personnel think that the implementation of the user space I mentioned in the previous article is hack, and said that the former is the right path, more Unixy, I think this must refer to "functional orthogonal ". At the same time, they introduced more general eventfd system calls, which can be used for event distribution and waiting in user space and event distribution in kernel space.

Network: Two new TCP congestion control algorithms are introduced: Illinois and YeAH-TCP. The author of the former is still a Chinese, which makes Chinese people happy! Another high-Speed TCP congestion control algorithm, CUBIC (enhanced version of BIC), has also been updated.

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.