Linux implementation principle – multi-thread scheduling overhead and performance optimization in NUMA multi-core architecture

Foreword NOTE: The “thread” referred to in this article refers to the executable scheduling unit Kernel Thread. NUMA Architecture The design concept of NUMA (Non-Uniform Memory Access, non-uniform memory access) is to partition the CPU and Main Memory autonomously (Local NUMA node), and to cooperate across regions (Remote NUMA node), in this way to alleviate […]

Application of C++ prefix sum algorithm: minimal overhead of making arrays equal

Basic knowledge points involved in this article C++ algorithm: principles, source code and test cases of prefix sum, prefix product, prefix XOR including course videos Title You are given two arrays nums and cost whose indexes start from 0, each containing n positive integers. You can perform the following operations any number of times: Increase […]

The onChange callback of the antd component needs to be executed immediately to change the value and anti-shake to save interface overhead.

Article directory Ordinary use Use anti-shake to save money The page function is complex and requires value control The callback requires some code to be executed immediately, and some code to be executed with anti-shake delay. useRef useCallback summary Normal use When we use Antd’s input or select to search, the onChange callback will be […]

Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded exception of JVM source code analysis

Written in front: Version Information: jdk version: jdk8u40 Garbage collector: ParallelScavenge new/old Recently, I saw an old man asking around with exception information in the group, and what happened was java.lang.OutOfMemoryError: GC overhead limit exceeded exception. It happened that people often asked about this exception. How did it happen? How to solve it? That’s why […]

[1217]org.apache.hadoop.hive.ql.exec.mr.MapRedTask.GC overhead limit exceeded

When running on the cluster, I reported this error: Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask (state=08S01,code= 2) Then, according to the id of the job, I checked the log on yarn and found that the error is as follows: FATAL [main] org.apache.hadoop.mapred.YarnChild: Error running child : java.lang.OutOfMemoryError: GC […]

[Unity Actual Combat] Making Vitality Knights and Advancing into Dungeons – Various Shooting Effects of Shooting Games from an Overhead View (2) (with source code)

Article directory foreword 1. Bazooka 1. Write the bazooka script 2. Create prefabs for rockets and new explosion effects 3. Write rocket script 4. Set up the scripts and parameters of rockets and rocket launchers 5. Operation effect 2. Laser gun 1. Write the laser gun script 2. Run the game first to see the […]

Twenty-five, OSPF advanced technology – overhead value, virtual link, neighbor establishment, LSA, silent interface

Article directory Debugging instructions (three tables) 1. Neighbor table: dis ospf peer brief 2. Topology table (link state database): dis ospf lsdb 3. Routing table: dis ip routing-table 1. OSPF overhead value/measurement value (cost) 1. cost= accumulated along the way (100M/link bandwidth) 2. View instructions 3. Modify the reference bandwidth 4. Manually modify the overhead […]

com.github.oshi-3.9.1 java.lang.OutOfMemoryError: GC overhead limit exceeded troubleshooting ideas

Every interview will be asked about JVM, memory overflow and other issues. The solution is much the same: 2. Increase the heap memory. Since the heap memory is less, just increase the heap memory, -Xms64M -Xmx64M, if there is a memory leak, it is still a temporary solution 3. Optimize the code for memory leaks […]