Task space management of learning notes in Linux operating system

1, Foreword                   . First, we will follow the previous task_struct explains task space management structure mm_struct, and a brief introduction to the physical memory and virtual memory related knowle ...

Posted by captain_scarlet87 on Thu, 25 Jun 2020 03:54:04 -0700

strlen old bottle new wine

Introduction - overview of strlen I accidentally scan the code in glibc strlen.c, which I can't forget for a long time. I also remember the starting point in my unknown programming career: Programming is not a joke, some are difficult, some are reluctant to give up. Review with the track, once the most familiar feeling of strlen~ /* Copyright ...

Posted by jtrost on Fri, 29 May 2020 06:52:45 -0700

A Bug that causes the JVM to consume a lot of physical memory

This article is from: PerfMa Technical Community PerfMa Official Website Summary Recently, our company helped a customer find a JVM problem (JDK1.8.0_191-b12), found that a system is always lost by OS Kill, caused by a memory leak.During the process of investigation, another Bug in JVM was found by mistake.This Bug is likely to cause a lot of ...

Posted by broann on Thu, 21 May 2020 20:06:56 -0700

A tip to see if the PID process exists

In Linux, to judge whether a PID corresponding process exists, you can judge it as follows #! /usr/bin/env python import os def check_pid(pid): try: os.kill(pid,0) except OSError: return False else: return True if __name__ == "__main__": print check_pid(22467) Returns True if the PID exists in the sy ...

Posted by banjax on Tue, 19 May 2020 07:52:33 -0700

The jam caused by the setting of [MySQL] time zone

Author: Tian Jie It's not uncommon for a long query execution time to cause an application aware "jam" in the daily support and use of the database, but the SQL execution "jam" caused by the time zone setting is still an interesting phenomenon, which has not been specifically concerned before. This customer's meticulous and ...

Posted by WowAddict on Thu, 07 May 2020 03:57:46 -0700

One click online installation of redis database by shell script (implemented by function)

The previous article gives the process of manual compilation and installation of redis, and gives the process of online installation of redis when simulating the establishment of redis cluster, so I want to write a redis script for online installation. In this paper, I mainly use shell functions to realize and verify the process of online ins ...

Posted by m!tCh on Wed, 25 Mar 2020 07:48:09 -0700

alpine Makes Mirrors

alpine Make Mirror Introduction to alpine Linux Making JDK8 Mirror Based on alpine Alpine Makes a jre Mirror Docker image uploaded to Aliyun preparation in advance Forget password can be modified by clicking on menu:'Container Mirror Service'- >'Default Instance' - >'Access Credentials' Pull mi ...

Posted by kanetan on Tue, 25 Feb 2020 17:23:37 -0800

alpine of Docker customizes alicloud image

Article directory Introduction to alpine Linux Making JDK8 image based on alpine 1. Making jdk image by alpine 2. Create and edit dockerfile 3. Execute dockerfile to create image 4. Create and start the container 5. Enter the container 6. test jdk 2. Alpine makes jre image (slimming) Minimum JRE b ...

Posted by angrytuna on Fri, 21 Feb 2020 03:34:39 -0800

Is there a printf converter that prints in binary format?

I can print printf as a hexadecimal or octal number.Is there a format tag printed as binary or any cardinality? I'm running gcc. printf("%d %x %o\n", 10, 10, 10); //prints "10 A 12\n" print("%b\n", 10); // prints "%b\n" #1st floor This code should meet your needs for up to 64 bits.I created two functions, pBin & pBinFill.Both do ...

Posted by new_to_php2004 on Mon, 10 Feb 2020 19:04:34 -0800

A strange memcpy problem

When you see this title, you must be thinking about the bug s caused by memory overlap. I admit that you are right, but not all of them. If you are interested in this, you can continue to look down, and you will surely get something. First of all, I will briefly introduce the background. Recently, there is a strange problem in the company's pr ...

Posted by cordex on Sat, 14 Dec 2019 11:41:16 -0800