Wenwei Weng's Blog
A small corner to record learning journey and share with others!
-
Linux disk management (1) - basics and using fdisk
In Linux world, disk management is an important area. To know how to use the disk, there are a few basic concepts need to be well understood. The key tool to administrate disk is fdisk. Basic concepts 1. naming conventions Linux has the different naming conventions for IDE drives, SCSI...
-
Linux Thread Local Storage
Thread-local storage (TLS) is a mechanism by which variables are allocated such that there is one instance of the variable per extant thread. There are two ways to use TLS. #Use the keyword “_thread” provided by compiler In the following example, “_thread” keyword which is supported by gcc compiler to...
-
Linux Huge Page
When a process uses some memory, the CPU is marking the RAM as used by that process. For efficiency, the CPU allocate RAM by chunks of 4K bytes (it’s the default value on many platforms). Those chunks are named pages. Those pages can be swapped to disk, etc. Since the...
-
Use Linux ACPI to power down system gracefully
ACPI stands for Advanced Configuration and Power Interface. It can be used to power off system gracefully, this is especially useful in the case of virtulized Linux system. ACPI was first released in 1996 by Compaq/Hewlett-Packard, Intel, Microsoft, Phoenix and Toshiba. It allows control of power management from within the...
-
4G/LTE Mobile Network Test Bed
During the software development of mobile router, IOT gateway, it is essential to have 4G/LTE test bed in place. In this post, I will cover three approaches to set up test bed for 4G/LTE test bed. To have a cost effective, and easy to use 4G/LTE test bed is critical...