What is the difference between the Linux2.6 kernel and the Linux2.4 kernel?

Source: Internet
Author: User
The module subsystem (ModuleSubsystem), the unified device model (uniieddevicemodel), and the PnP support module subsystem have undergone major changes. 2. stability is improved

1. module subsystemModule Subsystem, Unified Device Model, and PnP support Module Subsystem have undergone major changes.

2. improved stability

To completely prevent the kernel from loading or exporting the kernel module in use, or at least to reduce the possibility of using the module while loading or detaching the module (which sometimes causes system crash ), the process of loading and exporting kernel modules has been improved.

Be sure to back up the system before the upgrade to prevent major losses caused by upgrade errors. you must also prevent hardware incompatibility and application system incompatibility issues. you 'd better test the problem first before going online and running it!

3. Unified Device model

Creating a unified device model is one of the most important changes to the 2.6 kernel. It promotes the standardization of module interfaces and aims to better control and manage devices, for example, more accurate identification of System devices. Power management and device power status. Improved system bus structure management.

4. support for plug-and-play (PnP)

Linux running the 2.6 kernel becomes a real plug-and-play OS. For example, PnP support for ISA PnP extensions, legacy MCA and EISA buses, and hot swapping devices.

5. kernel infrastructure changes

To distinguish regular object files with the. o extension, the kernel module now uses the. ko extension. A new sysfs file system is created, which is described when the kernel discovers the device tree. Memory, NUMA, and more RAM. 2.6 The kernel supports a larger number of RAM Resources, up to 64 GB in paging mode.

6. NUMA

Support for Non-Uniform Memory Access-NUMA systems with inconsistent kernel Access is a new feature in kernel 2.6.

7. thread model, NPTL

Compared with the LinuxThreads in v2.4, NPTL (Native POSIX Threading Library) is newly introduced in version 2.6. NPTL provides enterprise-level thread support for Linux and provides far better performance than LinuxThreads, it is based on a ratio of between users and kernel threads.

In October 2003, NPTL support was incorporated into the gnu c Library glibc, and Red Hat was the first to implement NPTL using a customized v2.4 kernel in Red Hat Linux 9 and Red Hat Enterprise Linux.

8. Performance Improvement

New Scheduler algorithm. in 2.6, the Linux kernel introduced the new O (1) algorithm, which runs very well under high loads. The new scheduler distributes time slices based on each CPU, this eliminates global synchronization and reallocation loops, thus improving performance.

Kernel Preemption. The new 2.6 Kernel is preemptible, which significantly improves the performance of interactive and multimedia applications.

I/O performance is improved, and the Linux I/O subsystem has also undergone major changes, by modifying the I/O scheduler, you can ensure that no process will reside in the queue for too long to wait for input/output operations, so that the I/O operation can respond more quickly.

Fast User-Space Mutexes (Fast User-Space Mutexes) and "futexes" (Fast User-Space mutex) can serialize threads to avoid race conditions. introducing it also improves the response speed, "futexes" is partially implemented in the kernel space to allow improvements based on competition to set the priority of waiting tasks.

9. scalability improvement

With more processors, Linux kernel 2.6 supports up to 64 CPUs. Support for larger memory, thanks to PAE (Physical Address Extension, Physical Address Extensions), the supported memory is increased to 64 GB in paging mode on a 32-bit system.

The number of users and groups increases from 65,000 to more than 4 billion, that is, from 16-bit to 32-bit.

The number of PID, the maximum number of PID increased from 32,000 to 1 billion.

The number of opened file descriptors. the number of opened file descriptors does not increase, but you do not need to set this parameter in advance. it will be adjusted by itself.

10. support for more devices

Before Linux kernel 2.6, there are restrictions on large systems in the kernel, such as 256 devices per chain. The v2.6 kernel completely breaks these restrictions, not only supports more types of devices, but also supports more devices of the same type. In Linux 2.6, 4095 supports 1 million main device types, each of which can have more than sub-devices. The file system size. The maximum size of the addressable file system allowed by Linux kernel 2.6 is 16 TB.

11. File system

Traditional Linux file systems such as ext2, ext3, and ReiserFS have been significantly improved. The most noteworthy improvement is the introduction of extended attributes (or file metadata. The most important thing is the implementation of posix acl, which is an extension of Common UNIX permissions and supports more refined user access control.

12. in addition to the improvement support for traditional Linux file systemsIn addition, the new kernel fully supports relatively new XFS file systems in Linux. The Linux 2.6 kernel also introduces improved support for the NTFS file system. now, the NTFS file system can be installed in read/write mode.

Related Article

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.