V
主页
京东 11.11 红包
[linux syscall] sendfile性能问题更新一:避免使用同步IO,使用buffered IO,调用sendfile, 结束后再sync数据
发布人
更新一下sendfile性能问题,目前的结论是: 使用sendfile拷贝文件的时候,不要使用同步IO (O_DSYNC等选项),sendfile执行结束后调用fdatasync来同步数据落盘。 如果使用同步IO, 每次写都会强行落盘,那么buffer size的大小就会影响性能。 我总是倾向于使用同步IO的,但是仔细想想,当使用sendfile来拷贝文件时,保证文件整体的完整性就足够了,没有必要确保每次write的数据完整性..... 不过,毕竟要作IO 操作,避免用户空间和内核空间切换所带来的性能提升依然是很小的 https://lore.kernel.org/lkml/61f74c43.16f9.18b5a51868f.Coremail.00107082@163.com/T/#mb127c9b4dd3978be91e085eaf3e218e745603dcc
打开封面
下载高清视频
观看高清视频
视频下载器
【Linux】bcachefs性能对比测试数据更新,原来我是被debian发行版里的长久不更新的bcachefs-tools坑了!!!
【Linux】kernel6.10新功能MEMORY ALLOCATION PROFILING认知更正:是我自以为是了,差点错过一款强大的监控数据源
linux kernel 6.5征程正式开启!6.5.0-rc1发布:一个新的syscall加入,内存slab->slub, nvidia驱动又得调整!
【浅聊linux系统监控】基本的网络监控信息数据源:网卡流量,socket使用情况和几个backlog drop
[Linux syscall] sendfile: 不适合用在某些高“带宽”的底层IO上,佩服GNU的cp命令当年能忍得住sendfile的诱惑
Linux kernel ptrace接口使用入门篇:换个很慢的姿势,通过ptrace的syscall断点来实现离client最近的负载均衡
【linux】试用一下kernel6.8新增的几个“不怎么有意思”的系统调用
C/C++手游内存逆向 内存读写篇 3.系统调用ptrace读取手游内存原理(试看)
跨平台阅读器KoodoReader更新到1.7.0,简直是阅读的神器
【Linux】Nvidia驱动更新,跟kernel 6.8-rc2~rc6版本兼容
【经验分享】使用profiler分析性能变化,快速定位问题,减少bisect的范围: linux mmap/munmap性能变差很多!!
[浅聊linux系统监控]: 进程的IO的统计数据
【经验分享】Linux容器网络问题排查之我自己想访问我自己
【Linux】Nvidia驱动更新550.90.07,在6.10上可以顺利编译安装,只是依然可能会有kernel warn
使用ebpf跟踪(tracing)kernel的第二个优势:在kernel内部完成“简单”的数据统计
使用Linux seccomp接口,换个姿势来限制进程对kernel的系统调用~来写写(c)bpf的汇编代码吧
【浅聊linux系统监控】开篇:cpu的监控数据源(以及prometheus体系在“传统”系统中的安装使用)
[linux kernel] 6.7征程开启:新文件系统bcachefs集成;futex2相关的新的系统调用等等,跟nvidia官方驱动535.129.03匹配
利用Linux kernel的perf,ebpf和readelf,我要写个自己的profiler,第二章: 基本功能呈现
【linux】bcachefs初体验(kernel 6.9.0-rc4):性能很差,感觉“非常”不适合个人用户使用...
使用linux vxlan打通各个节点内部的容器网络之间的通讯,大材小用的L2 overlay技术
【Linux】kernel 6.10第一个正式版本发布:瞎搀和比较多的一个版本,nvidia驱动依然很会触发kernel warn
【经验分享】Linux容器网络问题排查之ipvs版本的我自己想访问我自己
仅利用Linux kernel的perf, 外加readelf工具,自己写一个cpu profiler之第三章:我要投诉~!ebpf有虚假/过度宣传的嫌疑哈~
【Linux Kernel】6.7第一个正式版本发布:netkit会在未来的容器网络结构中取代veth么?
linbox0.8正式发布版,附带wine修复安装视频+链接
【Linux】kernel 6.11-rc2发布: 我的Reported-by贡献+1; nvidia驱动更新
使用cpu profiler分析环境差异造成的应用的性能差异之 seccomp tracer和overlay fs对高IO应用的性能影响
【经验分享】文件系统的cache miss对高IO应用性能影响会有多么离谱呢?性能损耗的来源是来自cache miss触发的磁盘IO么?
仅用Linux kernel perf提供的功能,C++实现的轻量级CPU Profiler源码发布~!
【中字】在树莓派上运行半条命2
【性能分析】musl qsort性能问题分析 (冷知识更新:连glibc里的qsort也不完全是quick sort!!!!)
【linux】kernel6.9征程开启:新增config好少的一个首发版本
使用Linux kernel kprobe某些“可疑”的内核函数来触发profiler的数据采集,反向定位哪个应用/模块可能存在性能隐患
配置网络IP使用FinalShell连接
【linux】浅聊cgroup v1里的kmem统计,使用perf_event_open+kprobe分析应用对kmem的使用
[linux syscall] memfd_secret浅析: 允许进程申请一块“非常”秘密,连kernel都会“假装”无法读取的内存
为提升数学/算法水平,这周我都做了啥[2022-10-30] Linear Algebra (一门值得每年温习多次的数学)
内存管理-1
【经验分享】利用ebpf cgroup/connect的hook在Linux内核作负载均衡:负载均衡的最最最最最丝滑,最合理,最流畅,最最最最最最佳的位置!!!