3.7 prefetch
Recently, the intel processor family introduced several prefetch mechanisms to accelerate data or code migration and improve performance:
● Hardware instruction prefetch
● Data prefetch for Software
● Hardware prefetch for the cache row
7.4 prefetch
This section discusses the software prefetch instruction mechanism. Generally, software prefetch commands should be used to add and adjust an access mode to adapt to the practice of automatic hardware prefetch mechanism.
7.4.1 software
All along, how to speed up the start-up speed of Windows XP is a topic of concern to the majority of users. The author in my long-term use of Windows XP (Chinese Professional Edition) in the process of accumulating some of the Windows XP system to
InCodeThe use of likely () and unlikely () is often seen, especially in Linux kernel code.
If (likely (value) is equivalent to If (value)
If (unlikely (value) is also equivalent to If (value)
In terms of code understanding, their effects
8.5 system bus Optimization
The system bus service requests a bus proxy (such as a logic processor) to obtain data or code from the memory subsystem. The performance impact caused by retrieving data traffic from the memory depends on the features of
Branch prediction ):
This is an advanced processing method starting from the P5 era to handle pipeline failures caused by the if-then-else command. The CPU determines the direction of the program branch, it can speed up operations.
When the
Source http://blog.csdn.net/wojiwoye/archive/2010/04/16/5491624.aspx
I would like to thank wojiwoye, but it seems that he has also reprinted it. The original author of this article cannot find it... sorry ~
Type of abnormal interruption in arm:
Linux file prefetching algorithm the development of disk I/O performance lags far behind CPU and memory, thus becoming a main bottleneck of modern computer system. Prefetching can effectively reduce the number of disk seek and the application of I/O
This article isBendingThis article is written by Daniel kernelchina. It is very good. I would like to share it with you here.
Code-level optimization is the most direct and simple, but the premise is that you must be familiar with the Code and the
This paper mainly analyzes the memory and I/O-related system calls and library functions of the implementation of the principle, according to the principle of the use of the need to pay attention to the problem and the focus of optimization, this
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.