Garlic Space

Linux slob/slab/slub

Linux初始化通过bootmem/memblock引导内存分配进行内存管理,支持buddy system完成相关初始化后,将物理内存分配的功能转交给buddy system,buddy system是以page为单位分配方式。 对于内核要经常创建的对象, 如task_struct,

2020-07-11 · 9 分钟

为什么x86无法生存-Why x86 won’t survive

前不久, 评估CEO 库克在其全球开发者大宣布,Mac笔记本以及个人电脑将会改用苹果自家的ARM架构处理器。这将是自2006年从PowerPC处理器改用英特尔x86处理器后,又一次CPU架构的调整。下面这篇文章是Medium推送的,不过文章贬低X86中提到的漏洞, 我查

2020-06-29 · 3 分钟

通过alternatives进行多版本间切换

上周在学习单点登录安装CAS Overlay Template要使用指定版本,当时机器上安装了多个版本的jdk使用alternatives命令进行了切换

2020-06-28 · 2 分钟

LeetCode – Maximum Depth of Binary Tree

Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.…

2020-06-23 · 1 分钟

LeetCode – Minimum Depth of Binary Tree

Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.…

2020-06-23 · 1 分钟

Linux Swap 启停及swappiness设置

可以通过磁盘分区和文件两种方式进行操作

2020-06-21 · 2 分钟

The XY Problem

原文链接 The XY Problem

2020-06-21 · 2 分钟

安全攻防技能-安全基础概念

cybersecurity: 网络空间安全涉及旨在保护设备,网络,程序和数据免受攻击和未经授权的访问的一系列实践,流程和技术; 网络安全不仅可以保护数据,还可以保护存储数据的资源和技术。

2020-06-20 · 7 分钟

LeetCode – Binary Tree Level Order Traversal Solution

Given a binary tree, return the _level order_ traversal of its nodes' values. (ie, from left to right, level by level). For example: Given binary tree [3,9,20…

2020-06-09 · 1 分钟

Timers and time management in the Linux kernel. Part 7.

这篇文章 Timers and time management in the Linux kernel. Part 7

2020-06-07 · 12 分钟