Linux Kernel-CPU Cache and Memory Barrier

1. CPU cache The origin of cpu cache In all instruction fetch cycles of the CPU (program calculation), the memory needs to be accessed at least once (that is, what we call data on physical memory) It usually requires multiple accesses to the memory to fetch operands or save results. The speed of CPU processing […]

Explosive performance! Python multi-process mode implements multi-core CPU parallel computing

Article directory Preface 1. Multi-process mode in Python 2. Methods to improve program execution efficiency 1. Multiple processes execute tasks concurrently 2. Process pool 3.Message queue 4. Shared memory 5.Asynchronous IO Summarize About Python technical reserves 1. Learning routes in all directions of Python 2. Python basic learning video 3. Excellent Python learning books 4. […]

Pytorch installation and configuration in pycharm and jupyter-CPU detailed version

1. Create a virtual environment conda create -n virtual environment name python=3.6 It prompts me that I have already created this virtual environment, select y. After creation, the following screen is displayed Check again whether the creation is successful Enter the following command conda env list From the picture below, you can see that it […]

[Performance Test] CPU problem location and analysis + thread blocking case analysis, one article directly on the high speed…

Table of Contents: Introduction Preface 1. Python programming from entry to proficiency 2. Practical implementation of interface automation projects 3. Web automation project actual combat 4. Practical implementation of App automation project 5. Resumes of first-tier manufacturers 6. Test and develop DevOps system 7. Commonly used automated testing tools 8. JMeter performance test 9. Summary […]

CPU Cache and Memory Barrier

1. CPU cache The origin of cpu cache In all instruction fetch cycles of the CPU (program calculation), the memory needs to be accessed at least once (that is, what we call data on physical memory) It usually requires multiple accesses to the memory to fetch operands or save results. The speed of CPU processing […]

Linux C++ implements thread binding CPU

Foreword In embedded systems, we will use multi-core CPUs. As the performance of product chips improves, we will also have many functions and many processes running. At this time, when we perform task scheduling and tuning, we will Some processes are bound to a fixed CPU to run. Let’s share the process of CPU binding […]

Read this article to understand from CPU multi-level cache & cache coherence protocol (MESI) to Java memory model

Article directory CPU Multi-Level Cache & Cache Coherence Protocol (MESI) CPU multi-level cache Cache Coherence Protocol (MESI) Cache line Four cache states cache line state transition Multi-core collaboration example Website experience MESI optimization and introduced issues Store Buffers & Invalidate Queue Problems caused by Store Bufferes & Invalidate Queue Hardware memory model Read Barrier & […]

A small window plug-in used to display the current system time, CPU and memory usage, and network upload and download speeds.

I’ve recently been working on a gadget that aims to generate a widget that displays the current system time, CPU and memory usage, and network upload and download speeds. Initial goals: Generate a pop-up window and keep the window on top You can make settings in the pop-up window, check the corresponding information you want […]

LoongArch CPU Design Experiment_Practice Task 7: Simple pipeline CPU without considering related conflict handling

Directory LoongArch CPU Design Experiment_Practice Task 7: Simple pipeline CPU without considering related conflict handling statement Experimental requirements Pipeline design ideas (no conflicts) Add cache between pipeline stages Pipeline division pipeline cache Combinational logic and sequential logic (single-cycle pipeline) Sync RAM PC data path ?Jump instruction PC register reset Handshake signals between pipeline stages Code […]