Analysis of anonymous mapping page fault exception in Linux kernel virtual memory management

Before explaining the anonymous mapping page fault exception, we must first understand what is an anonymous page? Corresponding to the anonymous page is the file page. We should understand the file page well, which is the page that maps the file, such as mapping the file to the virtual memory through mmap and then reading […]

SpringMVC–@RequestMapping annotation

@RequestMapping annotation The function of @RequestMapping annotation The location of the @RequestMapping annotation @RequestMapping annotated properties 1. value attribute 2. method attribute 3. params attribute (understand) Replenish @RequestParam @RequestHeader @RequestBody @RequestBody gets request parameters in json format @ResponseBody @RestController annotation Function of @RequestMapping annotation The function of the @RequestMapping annotation is to associate the request […]

[C#] Use of Mapster object mapping

Series of articles [C#] Number generator (define order number rules, fixed characters, serial numbers, business order numbers) Link to this article: https://blog.csdn.net/youcheng_ge/article/details/129129787 [C#] Date range generator (start date, end date) Link to this article: https://blog.csdn.net/youcheng_ge/article/details/129040663 [C#] Component development, calling dll component methods Link to this article: https://blog.csdn.net/youcheng_ge/article/details/129492112 [C#] Use of data entity classes Link to […]

Project practice: component scanning (5) – parse methods with GetMapping or PostMapping and finally encapsulate them into ControllerDefinition

1. ControllerDefinition package com.csdn.mymvc.core; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; //Suppose there is a uri:/fruit/index @Data @NoArgsConstructor @AllArgsConstructor public class ControllerDefinition { private String requestMapping; private Object controllerBean; private Map<String, Method> methodMappingMap = new HashMap<>(); } 2. ComponentScan package com.csdn.mymvc.core; import com.csdn.mymvc.annotation.*; import java.io.File; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import […]

Project practice: component scanning (4) – filtering bean instances with RequestMapping annotations

1. ControllerDefinition package com.csdn.mymvc.core; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; //Suppose there is a uri:/fruit/index @Data @NoArgsConstructor @AllArgsConstructor public class ControllerDefinition { private String requestMapping; private Object controllerBean; private Map<String, Method> methodMappingMap = new HashMap<>(); } 2. ComponentScan package com.csdn.mymvc.core; import com.csdn.mymvc.annotation.*; import java.io.File; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import […]

Jellyfin transcoding and tone mapping efficiency improvements: enable processor low voltage mode (GuC/HuC)

Jellyfin transcoding and tone mapping efficiency improvements System environment Pull the nyanmisaka/jellyfin image Turn on low voltage mode Jellyfin configuration Enable QSV and low voltage mode decoding Turn on tone mapping (based on OpenCL) Actual measurement Verify low voltage mode Actual measurement of transcoding frame rate Test video overview Version 221029 vs Version 230901 Turn […]

Typescript generics, keyof, typeof, index type, mapping

Typescript generics A major part of software engineering is building components that not only have well-defined and consistent APIs, but are also reusable. Components that can handle today’s and tomorrow’s data will give you the most flexible ability to build large software systems. Use generic type variables function identity<Type>(arg: Type): Type { return arg; } […]

Use FastDFS and Nginx for port mapping to achieve remote access to local file servers

Article directory Preface 1. Build the FastDFS file system locally 1.1 Environment installation 1.2 Install libfastcommon 1.3 Install FastDFS 1.4 Configure Tracker 1.5 Configure Storage 1.6 Test upload and download 1.7 Integration with Nginx 1.8 Install Nginx 1.9 Configure Nginx 2. LAN test access to FastDFS 3. Install cpolar intranet penetration 4. Configure public network […]