LWN: Comments on "The conclusion of the 3.9 merge window" https://lwn.net/Articles/540994/ This is a special feed containing comments posted to the individual LWN article titled "The conclusion of the 3.9 merge window". en-us Sat, 04 Oct 2025 09:37:13 +0000 Sat, 04 Oct 2025 09:37:13 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net flicker-free suspend/resume on Intel https://lwn.net/Articles/542797/ https://lwn.net/Articles/542797/ kevinm <p>If CLOCK_MONOTONIC in Linux actually worked according to POSIX spec, then a timer based on this clock could be used to fix this problem.</p> <p>(POSIX says that CLOCK_MONOTONIC measures time elapsed since <i>"an unspecified point in the past"</i>, and further <i>"This point does not change after system start-up time."</i>. On Linux however, CLOCK_MONOTONIC stops while the system is suspended, which is clearly nonconforming).</p> Thu, 14 Mar 2013 00:46:41 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/542241/ https://lwn.net/Articles/542241/ mathstuf <div class="FormattedComment"> I thought it was arbitrary hierarchy (CPU tree != mem tree) that was going to be dropped.<br> </div> Sun, 10 Mar 2013 05:15:35 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/542231/ https://lwn.net/Articles/542231/ meyert <div class="FormattedComment"> Shouldn't the cgroup hierarchy support be removed in the long term? Or am I mixing this up?<br> </div> Sat, 09 Mar 2013 23:04:20 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/542104/ https://lwn.net/Articles/542104/ Lennie <div class="FormattedComment"> Had a quick look at dm-cache seems they actually have 3 things which can all be stored on different devices: the backing store, the cache and the meta data.<br> </div> Fri, 08 Mar 2013 17:49:34 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/542101/ https://lwn.net/Articles/542101/ Lennie <div class="FormattedComment"> The user unfriendliness exists to protect your data when using write-back.<br> <p> It is kinda annoying, I know.<br> <p> But if a normal block device would be used as a backing store there is nothing to preventing accidental use even though there might be dirty data on the cache device.<br> <p> The EnhanceIO developers use some udev scripts to prevent this, I haven't looked at how they do it. I guess that could work, the EnhanceIO developers said they haven't seen any problems yet. But I can definitely see why the bcache developer made his choice.<br> <p> If a cachesystem would have be integrated in the filesystem the filesystem could have something recorded which would prevent it from being mounted without the user forcing it in some way when the cache device is never coming back.<br> <p> It is kinda interesting to see there are 6 ways/ideas floating around to do caching or caching related things now for the Linux kernel:<br> - dm-cache, now in the kernel I guess<br> - Facebook Flashcache<br> - Google bcache<br> - EnhanceIO was based on Flashcache I believe<br> - If I'm not mistake in recent kernels there is code in the VFS which keeps track of which data is hot<br> - btrfs developers are looking at doing something in btrfs, if I remember correctly they have expressed some interest in the VFS solution<br> <p> The dm-cache, EnhanceIO and bcache have 'spoken' on the mailinglist and one even mentioned he didn't see any problem in having several implementations in the mainline kernel.<br> <p> I'm not so sure Linus would even accept those patches. :-)<br> <p> It is interesting and maybe sometimes seems a bit painful to see that many different efforts. They obviously all have their strengths and weaknesses of course.<br> </div> Fri, 08 Mar 2013 17:30:44 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/542086/ https://lwn.net/Articles/542086/ njwhite <div class="FormattedComment"> Ah, I've run into this with wpa_supplicant on Debian. Have you found a solution to it? Is there a straightforward way to get dhclient to wake up when the computer resumes?<br> </div> Fri, 08 Mar 2013 15:35:58 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/542004/ https://lwn.net/Articles/542004/ johill <div class="FormattedComment"> This would be easier in connman as it has DHCP built into it rather than calling out to dhclient (running as a daemon)<br> </div> Fri, 08 Mar 2013 09:07:13 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541979/ https://lwn.net/Articles/541979/ msnitzer <div class="FormattedComment"> Have you benchmarked bcache vs dm-cache vs enhanceio? If so I'd love to see what you found. We have an "all-caches" branch here:<br> <a href="https://github.com/jthornber/linux-2.6/tree/all-caches">https://github.com/jthornber/linux-2.6/tree/all-caches</a><br> <p> But we definitely need to definitely update the bcache and enhanceio code.<br> <p> Also, please note that there are some dm-cache fixes that will likely be sent to Linus for 3.9-rc2 that Alasdair (DM maintainer) has staged here: <a href="http://people.redhat.com/agk/patches/linux/editing/series.html">http://people.redhat.com/agk/patches/linux/editing/series...</a><br> </div> Fri, 08 Mar 2013 02:37:09 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541978/ https://lwn.net/Articles/541978/ msnitzer <div class="FormattedComment"> dm-cache has no relation to the original dm-cache (or flashcache).<br> </div> Fri, 08 Mar 2013 02:27:01 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541967/ https://lwn.net/Articles/541967/ mgedmin Somewhat tangentially there's a very interesting article about <a href="http://cafbit.com/entry/rapid_dhcp_or_how_do">DHCP tricks that MacOS X</a> does to reconnect faster. <p> I'd love to see Network Manager pick up something from that. </p> Instead, currently when I suspend a laptop via ssh -t foo sudo pm-suspend, I get to enjoy a lapsed DHCP lease on resume, for a few hours. According to strace that's because dhcpd expiration timer (i.e. select() with a timeout) simply stops while the laptop is suspended. Connection still works, but the wifi router doesn't resolve the laptop's hostname until dhcpd finally wakes up. Fri, 08 Mar 2013 00:56:05 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541956/ https://lwn.net/Articles/541956/ johill <div class="FormattedComment"> Yeah, that's what I suggested first (and indeed Dan has now opened a bug for to implement it in NM), however it is possible to break it down further like I was trying to describe later:<br> <p> 1) scan the last channel<br> 2) scan the known channels for the last SSID<br> 3) scan all (remaining) channels<br> <p> The intermediate step only makes sense if those known channels are a relatively small subset of all channels, but with typical installations they will be. In fact, for many networks like your home network 1) and 2) will be exactly the same because you only have a single AP, but for typical enterprise networks 2) will still be better than 3).<br> </div> Fri, 08 Mar 2013 00:10:46 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541944/ https://lwn.net/Articles/541944/ dlang <div class="FormattedComment"> well, you should first check the channel you were last using, and then do the normal scan you would do if someone just gave the SSID and told you to connect to it.<br> </div> Thu, 07 Mar 2013 23:25:35 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541905/ https://lwn.net/Articles/541905/ johill <div class="FormattedComment"> Well, yes. Although you could scan the channels in the right order, i.e. the ones that you'd expect the same network (SSID) on first. Say your corporate installation -- it's probably only going to use a handful of channels (1,6,11,36,149 or so), so if you know from "experience" that (almost) all of the APs for the network are there, you can scan those first.<br> <p> But ultimately you're right, in the general case you have to scan all channels and that simply takes a while. It shouldn't be more than a few seconds since you're not connected; here it takes ~3.5 seconds to scan all the channels my card supports, but I know that it can be (much) slower depending on the device.<br> </div> Thu, 07 Mar 2013 20:39:27 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541858/ https://lwn.net/Articles/541858/ raven667 <div class="FormattedComment"> It's also not as if this kind of problem is unique to Linux or NetworkManager, I experience very similar behavior on my MacOSX laptop when resuming from suspend, so this is a common problem with wireless. The stated solution probably won't speed up connection when changing location but keeping the same SSID as you will likely be connecting to a different AP on a different channel and it'll have to scan anyway.<br> </div> Thu, 07 Mar 2013 17:18:40 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541796/ https://lwn.net/Articles/541796/ johill <div class="FormattedComment"> The "immediately" online behaviour isn't really immediate, you will typically have been disconnected from the AP. In fact, this disconnection is now going to be enforced for 3.10 because the other behaviour doesn't gain a whole lot (you still need to reconnect etc.) and trying to keep the connection causes a huge amount of issues, particularly with USB hardware (that can be unplugged while suspended.)<br> <p> The "ultrabook" behaviour you refer to can be achieved with WoWLAN (<a href="http://wireless.kernel.org/en/users/Documentation/WoWLAN">http://wireless.kernel.org/en/users/Documentation/WoWLAN</a>) and network scanning offload (while in suspend), but this doesn't exist in Linux yet.<br> <p> However, a much easier solution could be implemented in NetworkManager: instead of scanning on all channels when resuming, it could scan just the channel that it was previously connected on. If that finds the previously connected AP, it would be able to reconnect almost immediately (delay of less than half a second), vs. a full scan that can take up to 10-15 seconds. This should be a fairly simple NetworkManager change.<br> </div> Thu, 07 Mar 2013 14:03:01 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541786/ https://lwn.net/Articles/541786/ sebas <div class="FormattedComment"> Thanks all for the answers, that's exactly what I wanted to know.<br> <p> Looking forward to flicker-free suspend/resume. Because I do that approximately a 100 times more often than rebooting, so not sure why everybody cares so much about flicker-free boot, with suspend states working stable and fast.I also hope to get a nice speedup from this, as the vt switch takes a long time here and is quite blocking.<br> <p> Now if I only could convince networkmanager to not drop the wifi connection purposefully, on suspend/resume, because that's apparently not necessary anymore with this nice ultrabook hardware. Using ifup/ifdown, it does not and is immediately online. Did anybody try that?<br> </div> Thu, 07 Mar 2013 13:12:45 +0000 "cache drives" https://lwn.net/Articles/541761/ https://lwn.net/Articles/541761/ tialaramex <div class="FormattedComment"> They spontaneously die to firmware glitches sometimes. This is unusual for a hard drive (never had any of my rotating rust do this in 20+ years), but you get used to it after a while. The media isn't actually damaged, just the firmware has stopped talking to you. If removed and re-inserted they will typically wake up and suddenly they're OK again until next time.<br> </div> Thu, 07 Mar 2013 11:25:10 +0000 "cache drives" https://lwn.net/Articles/541762/ https://lwn.net/Articles/541762/ Tobu The caching is in their windows software, the SSD has no visibility on the HDD. Thu, 07 Mar 2013 11:09:10 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541736/ https://lwn.net/Articles/541736/ ebirdie <div class="FormattedComment"> Thank you for the insightfull view. I have had bookmark on Bcache and an itch to try it when circumstances allow. Now that I'm aware of dm-cache I think I'll choose ease of use over topnotch performance.<br> </div> Thu, 07 Mar 2013 08:05:08 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541664/ https://lwn.net/Articles/541664/ ovitters <div class="FormattedComment"> If the module is added to the kernel the porting will be done for you. Plus the various kernel versions automatically will either have or won't have that parameter.<br> <p> Or in other words: pretty well known that there is no stability guarantee and the developers prefer to include your module/driver in the kernel. Seems that this often also gets you a good review (thus better quality).<br> </div> Wed, 06 Mar 2013 22:04:24 +0000 "cache drives" https://lwn.net/Articles/541604/ https://lwn.net/Articles/541604/ ntl <div class="FormattedComment"> Yeah, I suspected something like this. So the drive exposes only half of its advertised capacity to the host. Assuming the touted "intelligent caching algorithms" are implemented in the drive and not the Windows-only software that OCZ provides, maybe it would compare favorably in a dm-cache configuration to conventional SSDs. Maybe not.<br> <p> Anyway, the drives in the link seem to be EOL.<br> <p> </div> Wed, 06 Mar 2013 18:30:01 +0000 "cache drives" https://lwn.net/Articles/541601/ https://lwn.net/Articles/541601/ Tobu The small print on that page says it has 50% over-provisioning, so not visible outside of the SSD firmware. That must be there to compensate for the dataplex caching driver doing something not SSD-friendly, like heavy in-place rewriting (which would otherwise prevent the FTL from doing its work refreshing cells and spreading writes). bcache at least only writes whole erase blocks (1MB default bucket size), so it doesn't need that kind of overprovisioning. Wed, 06 Mar 2013 18:23:29 +0000 "cache drives" https://lwn.net/Articles/541597/ https://lwn.net/Articles/541597/ k3ninho <div class="FormattedComment"> <font class="QuotedText">&gt;it's only 32GB when mounted (the rest being cache)</font><br> The rest is intended to be used as the NAND cells wear out. The device has twice as much silicon as it needs so that it can be useful for longer, given the high read-erase patterns of scratch caches. The rest is not cache.<br> <p> K3n.<br> </div> Wed, 06 Mar 2013 18:02:12 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541599/ https://lwn.net/Articles/541599/ marduk <div class="FormattedComment"> <font class="QuotedText">&gt;&gt; The hlist_for_each_entry() iterator has lost the unused "pos" parameter.</font><br> <p> Unused parameters are undesirable.<br> <p> <font class="QuotedText">&gt;Yet another nightmare for out-of-tree modules that aim at supporting multiple kernel versions. sigh...</font><br> <p> Out-of-tree modules are undesirable.<br> </div> Wed, 06 Mar 2013 18:02:08 +0000 "cache drives" https://lwn.net/Articles/541566/ https://lwn.net/Articles/541566/ mathstuf <div class="FormattedComment"> Half of the drive is purely for cache. It's 64GB, but it's only 32GB when mounted (the rest being cache). There's no device for the "other half". I'd like to use that part of the drive in dm-cache, not the part I can use.<br> </div> Wed, 06 Mar 2013 17:07:57 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541523/ https://lwn.net/Articles/541523/ Tobu It seems to be the fastest of the lot, and an earlier version is in use at Google. Currently the maintainer is spoon-feeding some BIO and AIO rework through maintainer reviews, and I have no idea how much of the supporting infrastructure is left to merge at this point. It's not terribly user-friendly at the moment: no dm target that would allow in-place migration, and you have to stick to a maintainer tree for continued data access (even though a pass-through shim would be sufficient for non-writeback uses). Wed, 06 Mar 2013 14:48:05 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541520/ https://lwn.net/Articles/541520/ ebirdie <div class="FormattedComment"> And what about Bcache? I haven't seen news where this is aiming to, but according to its git-repo it seems to get development.<br> <p> <a href="http://bcache.evilpiepirate.org/">http://bcache.evilpiepirate.org/</a><br> <a href="https://lwn.net/Articles/501632/">https://lwn.net/Articles/501632/</a><br> <p> <font class="QuotedText">&gt;Bcache is a Linux kernel block layer cache. It allows one or more fast disk drives such as flash-based solid state drives (SSDs) to act as a cache for one or more slower hard disk drives. </font><br> </div> Wed, 06 Mar 2013 13:48:21 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541509/ https://lwn.net/Articles/541509/ Tobu I think "dm-cache" is more similar to <a href="http://visa.cs.fiu.edu/tiki/dm-cache">"dm-cache"</a>, first posted to LKML in 2006. Both are dm targets with pluggable tiering policies. EnhanceIO has some older dm-cache code by way of Flashcache, but it doesn't have the pluggable policies (I don't know if Flashcache slashed it or if there was some convergent evolution later). Wed, 06 Mar 2013 12:33:15 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541508/ https://lwn.net/Articles/541508/ blackwood <div class="FormattedComment"> Getting fastboot merged is a long road, we've pulled in preparatory infrastructure since 3.7. Currently I'm optimistic that 3.10 will have something which can actually avoid the initial modeset in some configurations. But there are still a lot of loose pieces to nail down.<br> </div> Wed, 06 Mar 2013 11:47:25 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541507/ https://lwn.net/Articles/541507/ blackwood <div class="FormattedComment"> Nope, missed the 3.9 cycle. Originally I've merged the core pm/fbdev patches for 3.9, but due to too much config madness and broken compilations I've taken them out again. The drm/i915 part itself wasn't ready in time, we still have outstanding issues. Should all land in 3.10.<br> <p> </div> Wed, 06 Mar 2013 11:44:37 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541468/ https://lwn.net/Articles/541468/ renox <div class="FormattedComment"> <font class="QuotedText">&gt;&gt; The hlist_for_each_entry() iterator has lost the unused "pos" parameter.</font><br> <font class="QuotedText">&gt;Yet another nightmare for out-of-tree modules that aim at supporting multiple kernel versions. sigh...</font><br> <p> And a perfect example why the kernel doesn't keep a stable internal ABI: otherwise you have to keep unused parameters aka bloat.<br> <p> </div> Wed, 06 Mar 2013 08:43:11 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541446/ https://lwn.net/Articles/541446/ bergwolf <div class="FormattedComment"> <font class="QuotedText">&gt; The hlist_for_each_entry() iterator has lost the unused "pos" parameter.</font><br> <p> Yet another nightmare for out-of-tree modules that aim at supporting multiple kernel versions. sigh...<br> </div> Wed, 06 Mar 2013 06:08:58 +0000 The conclusion of the 3.9 merge window https://lwn.net/Articles/541445/ https://lwn.net/Articles/541445/ bergwolf <div class="FormattedComment"> <font class="QuotedText">&gt; The device manager has gained support for a new "dm-cache" target that is able to use a fast drive (like a solid-state device) as a cache in front of slower storage devices.</font><br> <p> What about the EnhanceIO driver that is aiming at 3.10 merge window? I assume that they are similar code accomplishing similar job, no?<br> <p> <a href="http://lwn.net/Articles/538435/">http://lwn.net/Articles/538435/</a><br> <p> </div> Wed, 06 Mar 2013 06:03:31 +0000 "cache drives" https://lwn.net/Articles/541442/ https://lwn.net/Articles/541442/ drdabbles <div class="FormattedComment"> I've used many of them in many situations. They are just as good as any other. Turn on TRIM/DISCARD on a recent Intel 320 SSD and the drive will die due to a "known issue".<br> </div> Wed, 06 Mar 2013 05:33:18 +0000 "cache drives" https://lwn.net/Articles/541428/ https://lwn.net/Articles/541428/ drag <div class="FormattedComment"> Ewww... OCZ drives are bad news from what I am told.<br> </div> Wed, 06 Mar 2013 03:03:33 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541406/ https://lwn.net/Articles/541406/ Tobu Also, here is <a href="http://lkml.indiana.edu/hypermail/linux/kernel/1302.3/00558.html">airlied's pull request</a>. It doesn't name fastboot, but does give a shootout to “the worst news site ever”, the one I've just linked to :P Wed, 06 Mar 2013 01:37:12 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541405/ https://lwn.net/Articles/541405/ Tobu I don't use it myself, but Phoronix <a href="http://www.phoronix.com/scan.php?page=news_item&px=MTI3MjM">mentioned</a> that this merge has part of intel's "fastboot" work, which seems to be about reusing bios-allocated frame buffers. Wed, 06 Mar 2013 01:30:44 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541404/ https://lwn.net/Articles/541404/ neilbrown <div class="FormattedComment"> Well if you look in kernel/power/suspend.c, in suspend_prepare(), you can see an unconditional call to pm_prepare_console(), and in kernel/power/console.c pm_prepare_console() always calls vt_move_to_console(SUSPEND_CONSOLE, 1), where <br> #define SUSPEND_CONSOLE (MAX_NR_CONSOLES-1)<br> <p> This will always switch console unless disable_vt_switch is set, and that only gets set by a call to pm_set_vt_switch(0).<br> <p> This is only called by drivers/video/geode/gxfb_core.c and drivers/video/geode/gxfb_core.c, which defaults it to 0 unless it is set by a module parameter:<br> <p> module_param(vt_switch, int, 0);<br> MODULE_PARM_DESC(vt_switch, "enable VT switch during suspend/resume");<br> <p> <p> So it looks like, with 3.9-rc1, you always get a vt switch at suspend/resume unless you have a GEODE video controller.<br> <p> (note to self: I really should use that pm_set_vt_switch() call for my omap3 display on the GTA04 instead of commenting out the call to pm_prepare_console())<br> </div> Wed, 06 Mar 2013 01:26:44 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541397/ https://lwn.net/Articles/541397/ marduk <div class="FormattedComment"> It might be in 3.9-rc1 already. I didn't see any vt switching when resuming from suspend (but I never noticed it before either)<br> </div> Wed, 06 Mar 2013 00:42:40 +0000 flicker-free suspend/resume on Intel https://lwn.net/Articles/541383/ https://lwn.net/Articles/541383/ sebas <div class="FormattedComment"> I've read that it was planned that flicker-free suspend and resume (i.e. no vt switching for S3) for the Intel KMS driver was planned for this release. Short of going through huge git log, does anybody know off-hand if this change-set made it in? <br> </div> Tue, 05 Mar 2013 23:23:22 +0000