惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 【当耐特】
云风的 BLOG
云风的 BLOG
罗磊的独立博客
C
Check Point Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
I
InfoQ
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog
B
Blog RSS Feed

Mox的笔记库

2026PPoPP MLIR Tutorial学习 | Mox的笔记库 MacOS配置《明日方舟:终末地》 | Mox的笔记库 2025:向内生长 | Mox的笔记库 由mlir::ExecutionEngine引发的跨系统问题 | Mox的笔记库 WSL2配置Cuda-Tile环境记录(未完待续) | Mox的笔记库 Vibe Coding手搓项目记录 | Mox的笔记库 给Debian上包——以DuckDB为例 | Mox的笔记库 UCPD.sys事件存档 | Mox的笔记库 换新电脑之Mac mini M4从购买到配置 | Mox的笔记库 Mac配置MLX-C开发环境 | Mox的笔记库 RISC-V meets RDBMS——RISC-V架构上可运行数据库一览 | Mox的笔记库 DuckDB Sort实现调查 | Mox的笔记库 如何在MLIR中自定义类型并且输出运行 | Mox的笔记库 网站网络结构变更记录 | Mox的笔记库 EDBT25论文阅读:PhoebeDB——A Disk-Based RDBMS Kernel for High-Performance and Cost-Effective OLTP SIGMOD25论文阅读:BPF-DB:——A Kernel-Embedded Transactional Database Management System For eBPF Applications Apache Arrow Gandiva项目解析 | Mox的笔记库 VLDB24论文阅读:Cloud-Native Database Systems and Unikernels——Reimagining OS Abstractions for Modern Hardware NoisePage源码分析(未完待续) | Mox的笔记库 VLDB20论文阅读:Mainlining Databases——Supporting Fast Transactional Workloads on Universal Columnar Data File Formats VLDB17论文阅读:Relaxed Operator Fusion for In-Memory Databases:Making Compilation, Vectorization, and Prefetching Work Together At Last 论文阅读:How not to structure your database-backed web applications——a study of performance bugs in the wild SIGMOD24阅读:ROME——Robust Query Optimization via Parallel Multi-Plan Execution 文章阅读:First Past the Post-Evaluating Query Optimization in MongoDB SIGMOD文章阅读:Apache Calcite——A Foundational Framework for Optimized Query Processing Over Heterogeneous Data Sources VLDB23论文阅读:Analyzing the Impact of Cardinality Estimation on Execution Plans in Microsoft SQL Server SIGMOD22论文阅读:Efficient Massively Parallel Join Optimization for Large Queries VLDB论文阅读:Weaving Relations for Cache Performance VLDB22论文阅读:ConnectorX——Accelerating Data Loading From Databases to Dataframes 论文阅读:UniKraft-Fast, Specialized Unikernels the Easy Way
修复Redis在树莓派5上无法运行的问题 | Mox的笔记库
MocusEZ · 2025-08-02 · via Mox的笔记库

前段时间从组里面拿到一块顶配的树莓派5(16GB内存),准备搞点东西玩玩,却发现Redis死活无法启动,查看下日志后直接懵逼😅

<jemalloc>: Unsupported system page size

Could not connect to Redis at 127.0.0.1:6379: Connection refused

<jemalloc>: Unsupported system page size

zmalloc: Out of memory trying to allocate 56 bytes

Aborted

好好好,啥叫Unsupported system page size?于是按照网上说的输入getconf PAGE_SIZE看看情况

嚯,16KB,话说System Page Size这玩意我从来就没有注意到过,于是打开自己的WSL看看情况

OKOK,那现在的情况就显而易见了:Redis因为Jemalloc的问题无法在树莓派5上运行了。解决方法有两种

1.修改Kernel.img

想必树莓派的研究人员也是考虑到过这种情况的,所以也准备了Page Size为4KB的Kernel

网上有很多相关教程,这里就直接粘贴进来供大家参考

在/boot/firmware/config.txt添加这一行

然后重启树莓派

然后Redis就能正常启动了

这个方案是可行的!重新编译后Jemalloc会自动识别树莓派的16KB PageSize,因此就能正常运行,这里贴下我正常运行的配置,使用的Linux发行版是Debian

安装依赖:

sudo apt-get install -y --no-install-recommends ca-certificates wget dpkg-dev gcc g++ libc6-dev libssl-dev make git cmake python3 python3-pip python3-venv python3-dev unzip rsync clang automake autoconf libtool

下载源码包进行Make编译

wget -O redis-8.0.3.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0.3.tar.gz

tar xvf redis-8.0.3.tar.gz

export BUILD_TLS=yes BUILD_WITH_MODULES=yes DISABLE_WERRORS=yes

make -j "$(nproc)" all

如果手滑,做了些不该做的操作的话,直接make distclean清理目录

虽然不用sudo也能运行,但有条件的话还是建议使用sudo

sudo ./src/redis-server redis.conf

如果是远程访问Redis的话还需要做安全配置更改,这里就不说了

后记

去树莓派社区看为什么他们选择设置16KB的Page Size,得到的答复是会有7%的性能提升(Why to run 16k page size for RPi5?)

image-20250801160645050

然后下面老哥的评价让我有些无语😅

If you have some software that does have problems with 16k pages then that is what you should be looking at, not complaining that the os breaks them.

emmm……虽然我情感上支持这位老哥说的,但当我试图尝试其他软件,也因为16KB这个问题运行不起来后(KeyDB,InfluxDB),我决定写这篇Blog记录这个问题

以及:我不认为,为了这7%的性能提升,值得我去挨个编译那些不支持的软件🤔

Anyway,我觉得要是有空的话,我倒是想探究下这7%的性能增长是怎么来的


avatar

探索未曾设想的道路