TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Linux Performance

355 点作者 nitinreddy88超过 1 年前

19 条评论

keepamovin超过 1 年前
I use tuned for my Debian and Ubuntu VPSs that run real-time apps, and it seems to work well. Simpler than me toggling kernel parameters (also known as sysctl settings or kernel tunables) myself.<p><a href="https:&#x2F;&#x2F;access.redhat.com&#x2F;documentation&#x2F;en-us&#x2F;red_hat_enterprise_linux&#x2F;7&#x2F;html&#x2F;performance_tuning_guide&#x2F;sect-red_hat_enterprise_linux-performance_tuning_guide-performance_monitoring_tools-tuned_and_tuned_adm" rel="nofollow noreferrer">https:&#x2F;&#x2F;access.redhat.com&#x2F;documentation&#x2F;en-us&#x2F;red_hat_enterp...</a><p><pre><code> sudo apt install tuned</code></pre>
评论 #37885574 未加载
spandextwins超过 1 年前
Didn&#x27;t know Brendan Gregg was at Intel now.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Brendan_Gregg" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Brendan_Gregg</a><p>He is also the star of the Shouting in the Data Center viral video<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=tDacjrSCeq4">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=tDacjrSCeq4</a><p>True genius!
PaulDavisThe1st超过 1 年前
I think it worth noting briefly that almost everything discussed in TFA concerns bandwidth (network, disk, other I&#x2F;O, CPU) and not latency. That&#x27;s understandable, because performance for a lot of people <i>is</i> about bandwidth. But there are some of us for whom bandwidth definitely takes a back seat, and you need a different set of tools for tuning latency in Linux.
评论 #37883130 未加载
评论 #37884180 未加载
评论 #37883073 未加载
评论 #37884051 未加载
thanatos519超过 1 年前
Waiting is also a good strategy!<p>As of Linux 6.5, the scheduler understands that when one SMT &quot;core&quot; is busy, that means it might not be the best idea to schedule something on the the other &quot;core&quot;, since it&#x27;s really just a single core with a very low cost context switch. This makes certain very-parallel things noticeably snappier for me, and I can see it on the CPU usage graphs.<p>YMMV due to cache coherency and NUMA issues. :D
评论 #37884481 未加载
dang超过 1 年前
Related:<p><i>Linux Performance</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13498485">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13498485</a> - Jan 2017 (64 comments)<p><i>Linux Performance</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8205057">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8205057</a> - Aug 2014 (22 comments)
nickdothutton超过 1 年前
If you are of a mind to change a tuneable parameter yet cannot tell me why this tuneable will have the desired effect, or why it is so-set in the first place, then I will not allow you to change it (in prod).<p>“Chesterton’s tuneable parameter”.
评论 #37883655 未加载
p5a0u9l超过 1 年前
Nicely done Brendan! Thank you, knowing Brendan’s work with eBPF, I take this as a way to more easily monitor and assess performance under different types of performance. Tweaking&#x2F;tuning comes with trade offs, and I usually end up optimizing one thing to the detriment of others..<p>Side note, I’ve found btop a super useful replacement for glances, to have an all-in-one TUI view of system performance and loading. Wonder how much those dev(s) are leveraging this, and whether anything out there’s motivated to build better TUI monitoring tools.<p>Every server I go on, first thing is, start up tmux, dedicate one window to btop.
umvi超过 1 年前
For me, &quot;tuning&quot; linux for performance = disabling spectre&#x2F;meltdown mitigations (in this case compute nodes are running in a VPC with no internet access, so seems pretty low risk)
评论 #37885964 未加载
costco超过 1 年前
Bookmarked! This will be useful to me soon for something I&#x27;m working on.<p>I haven&#x27;t read all the slides yet but one thing I was wondering was if you ever found any significant performance increases from kernel build options. In my Gentoo days when I would play around with build flags I would change kernel Makefile to use -O3 and apply a patch for -march=native. In hindsight, looking at some Phoronix benchmarks it appears this is actually harmful to a number of workloads. Curious if you ever found any cases otherwise.
spaintech超过 1 年前
Great site! I kind of have a predisposition to summarize linux performance, be it tuning or monitoring, taking a deep breath…<p>This is such a depth subject, with a long list of variety of observability tools. At minimum, make sure you know deeply uptime, dmesg, and iostat. These are your friends to give you a glimpse into various system aspects like load, memory, CPU, and more, enabling a diagnostic overview of system health. This is what I call, the “let me take a look at it” check list, 1st page of 100!<p>When emphasizing methodologies for performance analysis I recommend careful benchmarking to holistically evaluate system behavior and workload characteristics. with before and after scenarios. Make smaller changes first, then gradually compound what you think will provide benefits. Remember, labs and production never behave the same.<p>This is where it gets tricky, CPU profiling with tools like “perf” and visual aids like flame graphs enable targeted analysis of CPU activity, along with tracking hardware events to optimize computational efficiency. You need to know more than “it’s the app man, was fine until the latest release from development”<p>When you are the admin and speaking to a developer; Linux, tools like ftrace and BPF come into play, allowing for detailed tracking of kernel function execution and system calls, which can be vital in troubleshooting and performance optimization. You can also be the developer, varying the admin’s intuition… as the saying goes, trust but verify.<p>When it’s your code, then you better know BPF! It not only facilitates efficient in-kernel tracing but also propels the development of advanced custom profiling tools through bcc and bpftrace, offering deeper insights into system performance.<p>Last comment, it’s %$$% hard! Tuning means you need to navigate through adjusting a myriad of system components and kernel parameters, from CPUs and memory to network settings, aiming to optimize performance and reliability across various system workloads, else you can blame it on the network! :D<p>Really, you need to have a good behavioral attitude at change management, as chasing code or kernel parameters could be a daunting task that just overwhelms everyone in a moment where you might be time constrained and the preasure could lead to a higher degree of human errors.
jtriangle超过 1 年前
Current kernel and current distro tuning is almost always folly unless there&#x27;s a specific issue you&#x27;re trying to work around.<p>Trying to squeeze a little more juice out of something is bound to come at the detriment of something else, or worse, break something else in unexpected ways.<p>Basically, if the tunables aren&#x27;t obvious in whatever default config you&#x27;re using, the issue isn&#x27;t in that config, it&#x27;s that you&#x27;re asking too much of your hardware and just need better hardware.
评论 #37881615 未加载
评论 #37884148 未加载
simne超过 1 年前
Unfortunately for me, I have few times suffered with performance issues, and have not found good deep resource fast enough. For example, few times need to recompile FFMPEG or Unreal Engine, and have spent weeks for things, which on my hardware done in hours.<p>Now bookmarked this immediately.<p>Have not read deep, but from first view look good!
talent_deprived超过 1 年前
Great site, excellent visual layouts, and the site runs on the Apache web server so you know he knows what he&#x27;s doing. :-)
anthk超过 1 年前
Often, if you tune up your settings for performance and interactivity, I&#x2F;O will suffer, and viceversa. Your beast serving&#x2F;copying tons of data concurrently might not be the best one to play that Vulkan&#x2F;GL 4.5 game without frequent slowdowns.
alberth超过 1 年前
I wish there were optimization scripts based on your use case like: web server, database, etc … that would turn off unnecessary services &amp; tune settings appropriately.<p>For both OS and services.
notetaker超过 1 年前
Thank you.<p>Would any one happen to know a similar set of resources for Windows tuning (preferably Windows 2019 AWS EC2s)?
metadat超过 1 年前
(2021)
dijit超过 1 年前
The issue with performance is that junior sysadmins and developers start flipping knobs thinking that the defaults are somehow holding them back.<p>The truth is usually there are tradeoffs and the defaults fit a broad general case.<p>If you want throughput there are tunables for that, if you want low latency then usually those are inversely correlated. Same for tuning for low data loss after failure and so on.<p>You have to spend time learning the tradeoffs, which sysadmins used to do- now nobody has time as they have been munged into one role at many places.
评论 #37880609 未加载
评论 #37881546 未加载
评论 #37880057 未加载
评论 #37880801 未加载
评论 #37880980 未加载
评论 #37881659 未加载
评论 #37882263 未加载
评论 #37880378 未加载
评论 #37882512 未加载
SkipperCat超过 1 年前
Gregg&#x27;s book &quot;Systems Performance&quot; was a real game changer for me. Helped me understand how Linux internals and system performance inter-relate. I love how he&#x27;s able to take these pretty esoteric concepts and flesh them out. Truly one of the Linux GOATs<p>He also wrote a lot about Solaris, but I won&#x27;t hold that against him &#x2F;s.
评论 #37881164 未加载