LWN: 5.12 合并窗口,第二部分!

如何用Python+Librosa实现轴承异响检测?5步搞定工业设备故障预警 本文详细介绍了如何利用Python和Librosa库,通过5个步骤构建工业轴承异响检测与故障预警系统。从音频采集、预处理、频谱特征提取,到构建机器学习模型并进行实时监测,提供了完整的代码级解决方案。该方法能有效识别轴承早期故障特征,实现低成本、高效的设备预测性维护。 阅读详情

关注了就能看到更多这么棒的文章哦~

5.12 merge window, part 2

By Jonathan Corbet
March 1, 2021
https://lwn.net/Articles/847451/

5.12 kernel 的合并窗口随着 2 月 28 日发布的 5.12-rc1 关闭了。尽管 Linus 在 5.11 发布之后最初 6 天内被断电了,这次 release 还是按照正常的时间安排完成了。目前有 10,886 个改动合入了 mainline,其中约 2,000 个是在我们上一篇总结文章之后合入的。很明显,合入 patch 的速度慢下来了,不过其中还是有很多值得关注的功能。

Architecture-specific

  • RISC-V 架构也可以支持 NUMA(non-uniform memory access)系统了。此外也支持了 kprobes, uprobes, per-task stack canaries。

Core kernel

  • kcmp() 系统调用不再跟 checkpoint/restore 功能绑定了,可以在 config 的时候独立选择。

Filesystems and block I/O

  • ID mapping for mounted filesystem 功能终于合入了。过去几年看到好多种不同的实现方案,也算是尘埃落定了。合并通知邮件 里有更多信息 , 目前它支持 FAT, ext4, XFS 这几个文件系统。

  • NFS client 也可以支持"eager writes"了。在 mount 的时候打开这个选项的话,对文件的写操作不会暂存在 page cache 里面,而是直接发送给 NFS 服务器。这样就可以减少 NFS 客户端这一侧的内存压力,如果文件系统写满了的话也能马上得到通知,甚至针对某些 workload 还能提升 throughput。

  • CIFS (也就是"SMB") 文件系统新增了几个 mount option,可以控制文件(acregmax)以及目录的 metadata (acdirmax)的 caching 行为。

Hardware support

  • Miscellaneous: Playstation DualSense gamepads and force-feedback game controllers, Nintendo 64 game controllers, Nintendo 64 data cartridges, Intel Lightning Mountain centralized DMA controllers, Compute Express Link 2.0 type-3 memory devices, Broadcom VK accelerators, Qualcomm MSM8939 and SDX55 interconnect buses, Microchip AXI PCIe host bridges, Intel LGM SSO LED controllers, and Canaan Kendryte K210 reset controllers, pin control units, and clock controllers.

  • Pin control: R-Car V3U pin controllers, Allwinner H616 pin controllers, and Qualcomm SM8350 and SC8180x pin controllers.

Miscellaneous

  • user-space 的 perf-evens 这个工具也得到了更多功能,包括能报告 instruction latency(指令延迟)以及一个新增的 daemon mode 用来对那些需要长时间运行的 session 来进行分析。参见 merge changelog

Virtualization and containers

  • 添加了对 ACRN hypervisor 的支持

Internal kernel changes

  • build system 在编译 Arm64 和 x86 架构的时候可以利用 Clang 的 LTO (link-time optimization) 功能了。Android 在编译 kernel 的时候已经用上 LTO 一段时间了,现在这个功能也加到 mainline 了。参见这两个 commit:https://git.kernel.org/linus/79db4d2293eb 和 https://git.kernel.org/linus/dc5723b02e52

  • 移除了 EXPORT_UNUSED_SYMBOL() 以及 EXPORT_SYMBOL_GPL_FUTURE() 等宏,因为多年以来在 kernel 内都没有地方在使用它们了。

  • 合入了一个新的 memory 调试工具,名为 kfence。它可以找出多种类型的错误(use-after-free, buffer overflow, 等等)并且引入的 overhead 非常小,甚至可能可以用在生产系统(production systems)里,参见这个 documentation commit

  • io_uring 子系统的核心代码经过了重构,不再使用 kernel threads 了。如果确有一些需要在 thread context 上下文里完成的工作,就需要 calling process 先 fork 生成 thread。应该来说这个改动在 user 这边是看不到的(希望如此),同时也能借助移除这部分容易出问题的代码来减少 bug。

5.12 kernel 也开始进入稳定阶段了。除非有什么意外,否则最终的 5.12 版本应该会在 4 月 18 或者 25 日发布。看起来尽管发生了创纪录的冬季风暴,kernel 开发的步伐也不会被拖慢。这真是一件让人惊讶的事情。

相关文章:

全文完
LWN 文章遵循 CC BY-SA 4.0 许可协议。

欢迎分享、转载及基于现有协议再创作~

长按下面二维码关注,关注 LWN 深度文章以及开源社区的各种新近言论~

探索robotics-toolbox-python:从基础安装到高级机器人运动学应用 本文详细介绍了robotics-toolbox-python工具箱,从基础安装、环境配置到机器人运动学与动力学的核心应用。通过D-H参数、URDF导入和内置模型三种方式快速构建机器人模型,并演示了正逆运动学计算、关节空间与任务空间轨迹规划以及三维可视化仿真。该工具箱极大地简化了机器人算法开发流程,是进行机器人学研究和应用实践的强大工具。 阅读详情

相关推荐

用STM32定时器PWM高级功能驱动步进电机:F103C8T6+TB6600实战教程

本文详细介绍了如何利用STM32F103C8T6微控制器的定时器PWM高级功能驱动TB6600步进电机驱动器,实现高效、灵活的运动控制方案。通过硬件配置、PWM参数计算、运动控制算法及TB6600高级功能应用的全面解析,为工业自动化和精密控制领域提供了实用的技术参考。

game4的博客 191

LWN: 如何像kernel专家一样rebase & merge?

点击上方蓝色字关注我们~Rebasing and merging in kernel repositoriesByJonathan CorbetJune 18, 201...

Linux News搬运工 631

SAP CEWB 高效批量调整工艺路线与BOM的实战指南

本文详细介绍了SAP CEWB工具在批量调整工艺路线与BOM中的高效应用。通过实战案例和操作指南,帮助制造业企业快速掌握批量修改技巧,显著提升工作效率,避免手工操作带来的错误和耗时。特别适合需要频繁更新工艺路线和BOM的企业用户。

weixin_42524708的博客 403

kernel---1

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_33672400的博客 170

Abaqus子程序开发避坑指南:从UMESHMOTION到齿轮磨损分析实战

本文深入探讨Abaqus子程序开发中的关键技术与避坑指南,重点解析UMESHMOTION在齿轮磨损分析中的实战应用。从开发环境搭建、调试框架构建到性能优化和大规模计算,提供系统化的解决方案。通过真实案例展示如何避免内存泄漏、网格畸变等常见问题,并介绍数据驱动的磨损预测等前沿技术,帮助工程师提升仿真精度与效率。

weixin_30892037的博客 91

GD32单片机引脚复用指南:如何让JTAG接口的PA15/PB3发挥第二功能?

本文详细介绍了GD32F103Cx系列单片机如何通过AFIO模块进行引脚复用,特别是将默认用于JTAG调试接口的PA15、PB3等引脚释放为普通IO或复用功能引脚。文章从原理出发,结合代码实践,讲解了如何配置调试端口重映射,将JTAG引脚安全地转换为GPIO或定时器通道,并提供了常见问题排查与最佳实践,帮助开发者高效利用有限的引脚资源。

nept的博客 815

LWN: mount文件系统后对ID重映射!

关注了就能看到更多这么棒的文章哦~ID mapping for mounted filesystemsBy Jonathan CorbetNovember 19, 2020DeepL a...

Linux News搬运工 825

UE4打包为Framework库嵌入iOS原生工程

UE4打包为Framework库嵌入iOS原生工程

tangfuling1991的博客 1295

Linux阅码场 - Linux内核月报(2020年10月)

关于Linux内核月报Linux阅码场Linux阅码场内核月报栏目,是汇总当月Linux内核社区最重要的一线开发动态,方便读者们更容易跟踪Linux内核的最前沿发展动向。限于篇幅,只会对...

宋宝华 3645

大疆RoboMaster嵌入式面试,电机FOC调不出来当场走人

摘要:大疆RoboMaster嵌入式工程师面试以实战能力著称,重点考察FreeRTOS任务调度、FOC电机控制和CAN总线三大核心技能。FreeRTOS部分涉及优先级调度、栈溢出排查及信号量与互斥锁的区别;FOC控制要求现场编写电流环代码,并解释Clarke/Park变换原理;CAN总线则关注仲裁机制、CANopen协议应用及错误帧排查方法。面试强调工程实践,需具备STM32开发经验,建议搭建实际环境进行练习。该岗位被誉为"硬件版修罗场",充分体现大疆对实际开发能力的严格要求。

郑伟强dev的专栏 158

DRV8711驱动器的各寄存器的介绍

drv8711驱动器

PCLintelligence的博客 1637

LWN:内核5.4版本合并窗口——第二部分

点击上方蓝色“Linux News搬运工”关注我们~5.4 Merge window, part 2ByJonathan Corbet译者按:本文有两个笑话,看得懂的才...

Linux News搬运工 422

基于电能质量治理的场景实例:统一电能质量调节器(UPQC)与并网逆变器集成

本文通过Simulink平台,详细演示了统一电能质量调节器(UPQC)与并网逆变器的集成系统建模与仿真过程。主要内容包括:1)系统架构设计,包含光伏并网系统、非线性负载和电压扰动源;2)UPQC主电路设计,包括串联/并联单元拓扑和控制策略实现;3)与并网逆变器的能量交互与协同控制逻辑;4)典型电能质量问题的仿真测试场景。结果表明,该集成系统能有效治理电压暂降(维持负载电压380V±2%)和电流谐波(电网THD<3%),直流母线电压稳定在800V±5V。该系统为应对复杂电能质量问题提供了"电压

xiaoheshang_123的博客 313

LWN:5.16 合并窗口,第二部分!

关注了就能看到更多这么棒的文章哦~5.16 Merge window, part 2By Jonathan CorbetNovember 15, 2021DeepL assisted tr...

Linux News搬运工 457

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

LWN:6.11 合并窗口第一部分!

关注了就能看到更多这么棒的文章哦~The first half of the 6.11 merge windowBy Jonathan CorbetJuly 18, 2024Gemini-1.5-flash translationhttps://lwn.net/Articles/982034/6.11 内核发布的合并窗口于 7 月 14 日打开;截至撰写本文时,自那时起已有 4,072 个非合并变...

Linux News搬运工 2655

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

LWN:Linux 5.11 合并窗口第一部分!

关注了就能看到更多这么棒的文章哦~5.11 Merge window, part 1By Jonathan CorbetDecember 18, 2020DeepL assisted t...

Linux News搬运工 738

LWN: 5.12 合并窗口,第一部分!

关注了就能看到更多这么棒的文章哦~5.12 Merge window, part 1By Jonathan CorbetFebruary 22, 2021DeepL assisted tr...

Linux News搬运工 526

LWN:6.11合并窗口的剩余部分!

关注了就能看到更多这么棒的文章哦~The rest of the 6.11 merge windowBy Jonathan CorbetJuly 29, 2024Gemini-1.5-flash translationhttps://lwn.net/Articles/982605/6.11-rc1版本的发布标志着 6.11 合并窗口于 7 月 28 日结束。当时有 12,102 个非合并变更集(...

Linux News搬运工 2370

LWN:6.4合并窗口的第二部分!

关注了就能看到更多这么棒的文章哦~The rest of the 6.4 merge windowBy Jonathan CorbetMay 8, 2023DeepL assisted translationhttps://lwn.net/Articles/930481/Linus Torvalds 于 5 月 7 日发布了 6.4-rc1,并关闭了合并窗口。到那时,13,044 个非合并变更集已...

Linux News搬运工 1386

LWN:5.9合并窗口,第二部分!

关注了就能看到更多这么棒的文章哦~5.9 Merge window, part2By Jonathan CorbetAugust 17, 2020https://lwn.net/Arti...

Linux News搬运工 298

LWN: 5.11 合并窗口,第二部分!

关注了就能看到更多这么棒的文章哦~5.11 Merge window, part 2By Jonathan CorbetDecember 28, 2020DeepL assisted t...

Linux News搬运工 308

LWN:6.2合并窗口的第二部分!

关注了就能看到更多这么棒的文章哦~The rest of the 6.2 merge windowBy Jonathan CorbetDecember 27, 2022DeepL assisted translationhttps://lwn.net/Articles/918146/今年,世界收到了从 Linus Torvalds 来的一份特殊的圣诞礼物:6.2-rc1 kernel prepat...

Linux News搬运工 570

LWN: 5.13 合并窗口第二部分!

关注了就能看到更多这么棒的文章哦~The second half of the 5.13 merge windowBy Jonathan CorbetMay 10, 2021DeepL a...

Linux News搬运工 260

LWN:5.7内核合并窗口第二部分!

关注了就能看到更多这么棒的文章哦~5.7 Merge window part 2ByJonathan CorbetApril 13, 2020原文来自:https://lwn.net/...

Linux News搬运工 725

LWN:6.3合并窗口的第二部分!

关注了就能看到更多这么棒的文章哦~The rest of the 6.3 merge windowBy Jonathan CorbetMarch 6, 2023DeepL assisted translationhttps://lwn.net/Articles/924384/Linus Torvalds 于 3 月 5 日发布了 6.3-rc1,按时关闭了 6.3 合并窗口。那时已经有 12717...

Linux News搬运工 898

LWN:5.18 合并窗口,第二部分!

关注了就能看到更多这么棒的文章哦~5.18 Merge window, part 2By Jonathan CorbetApril 4, 2022DeepL assisted translationhttps://lwn.net/Articles/889266/Linus Torvalds 在 4 月 3 日发布了 5.18-rc1 内核预编译版本,在此之前,他已经将 1...

Linux News搬运工 626

LWN:5.14合并窗口结束了!

关注了就能看到更多这么棒的文章哦~The conclusion of the 5.14 merge windowBy Jonathan CorbetJuly 12, 2021DeepL a...

Linux News搬运工 508
上一篇: LWN:介绍lockless算法!
下一篇: LWN: lockless编程模式——relaxed access和partial memory barrier
LinuxNews搬运工
博客等级 码龄7年 445粉丝 20原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值