Thread creation and thread nature

In the last section, I learned the process creation in detail, and learned the difference between fork and vfork through examples. In this section, we will learn how to create threads, which only involve the application layer threads. We will learn how to create kernel threads later. Creation of app ...

Posted on Fri, 14 Feb 2020 05:28:44 -0500 by Charlie9809

[LVM] pit mounted in LVM partition after system reassembly

  The partition of the original Ubuntu 12.04 server version is as follows. Disk configuration  The glibc upgrade causes the system to restart and cannot be started. After the system is repaired, it is still wrong. The system is then refitted. In the reassembly project, the original ext4 partition is formatted and LVM is unc ...

Posted on Sun, 09 Feb 2020 12:08:16 -0500 by Distant_storm

COW (Copy On Write) in GCC

Article directory What is COW? Copy Elision Realization Possible implementation The implementation of libstdc + + What's the problem? What is the relationship between COW and C++11 How to trigger To be summarized **`std::move 'and copy elision** **deduced return type** **fork()** [These 10 trick ...

Posted on Sat, 01 Feb 2020 08:50:28 -0500 by Clandestinex337

Hongsoft Linux x64 development environment deployment (centos6-glibc ﹣ 2.18 + glibccxx ﹣ 3.4.20 + GCC ﹣ 4.8.2 upgrade)

If there are errors in the article, please leave a comment and point out, thank you!! Because the company needs to use hongsoft's API in Linux system recently, it needs to upgrade the system according to the configuration required by hongsoft Configuration required by hongsoft: Library dependent GLIB ...

Posted on Mon, 27 Jan 2020 04:28:13 -0500 by ajdegans

Server configuration virtual environment, jupyter, common commands

Catalog Server configuration virtual environment, jupyter Virtual environment creation Image source add The server is configured with jupyter and pycharm remote connection Install jupyter Configure jupyter notebook remote access Add conda virtual environment to the Jupyter Notebook Kernel Configure ...

Posted on Mon, 13 Jan 2020 06:21:31 -0500 by mamavi

Linux virtual memory management (glibc)

In the exchange voucher system developed by using mysql as DB, with the continuous creation of partition tables, it is found that mysqld has a suspected "memory leak" phenomenon. However, no similar problem (the final reason is due to glibc's memory fragmentation) has been found after the detection by valgrind and other tools. Recent ...

Posted on Thu, 02 Jan 2020 02:15:10 -0500 by mbabli

Detailed explanation of Linux stat, LSTAT, fstat, fstat functions (1)

Stat, LSTAT, fstat and fstatat are the interfaces provided by UNIX to access file information Here is the function prototype: #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> int stat(const char *pathname, struct stat *statbuf); int fstat(int fd, struct stat *statbuf); int ltat(const char *p ...

Posted on Mon, 30 Dec 2019 16:28:42 -0500 by gottes_tod

The efficiency of memcpy function in C language

For the convenience of explanation, let's first check the source code of memcpy, version: glibc-2.8 memcpy.c #include <string.h> #include <memcopy.h> #include <pagecopy.h> #undef memcpy void * memcpy (dstpp, srcpp, len) void *dstpp; const void *srcpp; size_t len; { unsigned long int dstp = ...

Posted on Tue, 24 Dec 2019 13:26:01 -0500 by 11Tami

Clickhouse data test new user creation

1, Data preparation: https://yadi.sk/d/pOZxpa42sDdgm Data download and upload Reference resources: https://blog.csdn.net/m0_37739193/article/details/79612186 Data import headache by killed [root@pcdnasdevapp03 ~]# cd /usr/local/clickhouse/ [root@pcdnasdevapp03 clickhouse]# ll total 3509708 -rw-r--r-- 1 root root 63 ...

Posted on Sun, 22 Dec 2019 14:05:48 -0500 by nielsg

Docker container performance monitoring tool Google / cadviser

Original address: https://hub.docker.com/r/google/cadvisor/ The Container Advisor provides container users with an understanding of the resource usage and performance characteristics of their running containers. It is a running daemon that collects, aggregates, processes, and exports information about running containers. Spe ...

Posted on Fri, 13 Dec 2019 13:43:09 -0500 by blackhawk08