Comments (5)
https://software.intel.com/en-us/articles/benefitting-power-and-performance-sleep-loops
from torokernel.
This is related with the cpu_relax() implemented in Linux. See #define cpu_relax() asm volatile("rep; nop")
from torokernel.
Intel suggests to use pause instead of rep nop.
from torokernel.
The pause instruction is supported by fpc. The compiler does not use such optimization. I need to define a macro and then use it.
from torokernel.
We can improve the execution of loops in two different situations:
- spin locks
- idle loops
In the first case, pause() instruction should be used. In the second, a combination of monitor()/_mwait(). As a third case, cores that are not used should be halted. Otherwise, they consume a lot of cpu.
from torokernel.
Related Issues (20)
- Xen note is not found when compiling with GNU ld (GNU Binutils for Ubuntu) 2.34
- Create smoke tests
- Use memory above 4GB
- Relax requirement for page alignment for VirtIOBus
- To understand if we need smp barrier HOT 6
- Add a vm allocator
- Add the MPI_AllReduce HOT 5
- Correct Buff.Base to first region
- CloudIt: Add a symbol to specify which commit to use when compiling an app
- Remove ServerSocket HOT 1
- Remove the if for the DispatcherEvent HOT 1
- Add an option to enqueue packets instead of sending one by one HOT 1
- Investigate how we can dedicate virtqueues per vcpu HOT 1
- Split thread ready queue into ready and sleept threads
- Licensing terms clarification for end user (developer) applications HOT 8
- Add support for indirect buffer descriptors
- Rewrite this script to python to handle better the parameters
- Add support for fpc 3.3.1
- Add support for latest qemu
- Add a pining option to CloudIt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torokernel.