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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Desktop HDD vs SSD for Postgresql

57 点作者 cowmixtoo将近 15 年前

9 条评论

barrkel将近 15 年前
SSD firmware needs to do clever things with caching and write combining to avoid premature wear. These algorithms are black boxes whose behaviour is very poorly modeled by the usual tuple of contiguous transfer rate / random 4K access rate / seek time etc. measured by artificial benchmarks. You don't know how the drive is really going to react until you hit it with the mix of operations that match your real workload.<p>Personally I've found the Intel SSDs to work best at the primary use case, speeding up small random reads, even when other drives have appeared to exceed them in random read. Bulk contiguous transfer looks really impressive, but mechanical drives with high data density are pretty fast at that too. What you really need the SSD for is random reads, and ensure that the random read performance holds up when mixed with other use patterns.
评论 #1586741 未加载
Luyt将近 15 年前
Nowadays I use SSDs in all my home machines (MacMini, laptop, gaming desktop). It really speeded them up, since seek times are so much faster. My unix server runs with a SSD for more than a year now, and I haven't had any problems with it.<p>Just for fun, I once configured two Intel SSDs in a stripe to see how fast it would be. After tweaking the stripe block size a bit (this made a huge difference!) the stripe maxed out at 400 megabyte/sec sustained read. That's almost a CDROMs' worth of data, each second ;-)
评论 #1586210 未加载
评论 #1586295 未加载
iamelgringo将近 15 年前
I've been looking in to this recently (ref: <a href="http://news.ycombinator.com/item?id=1567330" rel="nofollow">http://news.ycombinator.com/item?id=1567330</a>)<p>I just tested the speed of the elastic block storage on my EC2 instance with HDTune: <a href="http://i.imgur.com/Lbgjy.png" rel="nofollow">http://i.imgur.com/Lbgjy.png</a><p>vs crap assed 64GB SSD I bought for my netbook last fall: <a href="http://i.imgur.com/r2eaw.png" rel="nofollow">http://i.imgur.com/r2eaw.png</a><p>I've been frustrated with IO speeds on EC2 the last few months, but this pushed me over the edge. I'm buying components to roll my own server.
评论 #1585542 未加载
评论 #1586150 未加载
评论 #1586943 未加载
huhtenberg将近 15 年前
In short -<p>&#62; <i>SSD storage devices are five to fourteen times faster than their rotational brothers using a default 8.4.X Postgresql configuration</i><p>This should've really been at the top of the article ;)
gosub将近 15 年前
Not related to the article: the typography on this page gives me a headache (I'm on win7/chrome5). Ten different font size, random kerning and line space, serif mixed with sans-serif, bold/italics/bold-italics without a ratio. Argh.
评论 #1585482 未加载
carbocation将近 15 年前
Though the tests were conducted with Postgre, I suspect these results will be interesting to anyone running a database.<p>This is the sort of thing that causes me to inquire about the possibility of accessing external hardware from my VPS on Linode. VPS hosts should really consider offering SSD options for a premium, IMHO.
评论 #1585443 未加载
Andys将近 15 年前
1. You can kill a consumer-grade SSD surprisingly quickly if its being hammered with writes all day in a server. (Or at least, you can exceed the manufacturer's recommendations, and do you really want to do that in a server?)<p>2. SSD should be compared to a RAID of HDDs for a realistic test<p>3. The article says that they want to use it to store operational stats and log files - in this case I'd spend time testing PostgreSQL's transaction and sync tunables and probably arrive at some acceptable settings which work fine on a HDD.<p>With this sort of workload, it is easy to make Postgres combine multiple transactions into fewer I/Os.
wazoox将近 15 年前
The first SSD tested reaches 130MB/s reading and writing. IMHO it is running in SATA-1 mode (jumper? BIOS setting?) and that's what kills its performance. Any SSD should reach a much higher read throughput.
评论 #1585653 未加载
评论 #1585658 未加载
评论 #1585868 未加载
Volscio将近 15 年前
What are the implications for the web and Tim Berners-Lee's vision for linked data once the cloud switches to SSDs? Won't sites like reddit see a lot fewer problems since the DB access won't bring the hard drives to their knees?