LWN: Comments on "The second half of the 2.6.37 merge window" https://lwn.net/Articles/412459/ This is a special feed containing comments posted to the individual LWN article titled "The second half of the 2.6.37 merge window". en-us Mon, 08 Sep 2025 04:55:08 +0000 Mon, 08 Sep 2025 04:55:08 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net 'Support for the CAIF shared memory protocol has been added. ' https://lwn.net/Articles/414800/ https://lwn.net/Articles/414800/ jch <div class="FormattedComment"> I was under the impression that CAIF is used internally by Android phones. It's for communication between the two CPUs in the phone, not for communicating with an external device.<br> <p> --jch<br> <p> </div> Thu, 11 Nov 2010 13:06:36 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/413720/ https://lwn.net/Articles/413720/ slothrop <div class="FormattedComment"> Good points, <br> I write ~30GB per week to my 30GB SSD (just one partition).<br> So I changed cron from running fstrim daily to twice a week.<br> <p> </div> Sat, 06 Nov 2010 18:08:19 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/413660/ https://lwn.net/Articles/413660/ Lope <div class="FormattedComment"> If you do want to benchmark discard performance of you SSD you can use this tool :<br> <p> <a href="http://sourceforge.net/projects/test-discard/">http://sourceforge.net/projects/test-discard/</a><br> <p> BUT, there are some very bad devices which might be corrupted by sending lots of small TRIM's so better be careful (Or blame your vendor for doing bad job!).<br> </div> Sat, 06 Nov 2010 04:27:11 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/413658/ https://lwn.net/Articles/413658/ Lope <div class="FormattedComment"> The question of how often do you want to run fstrim on the whole filesystem is a little tricky, because it depends on what type of workload you are running. If you are able to fill up you disk within one day you probably should reclaim the space (discard) at least one time a day, but on regular desktop I very much doubt that. <br> <p> So, what you probably want to do (if you want to be exact) is to watch the amount of data written to the filesystem (you can do that through /sys/fs/ext4/&lt;device&gt;/lifetime_write_kbytes assuming that on &lt;device&gt; is ext4 fs) and when it is going to reach some threshold (like 80% of device size) you would need to start doing the discard (note that FITRIM on ext4 will return amount of reclaimed space). But all of this may be an awful overkill for simple desktop:). And aside of that there are some very bad devices out there which are showing significant performance regression even at 50% fs saturation. And of course if you have more partitions on the same device ... it gets even more complicated :)<br> <p> All that said, if you are ok with doing it once a day (and you are not even noticing it) it is good thing to do. But if it disturbs you, you probably would not want to do it so often, or at least do it per partes (which you can do with a little scripting) through a longer period of time.<br> </div> Sat, 06 Nov 2010 04:13:39 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/413076/ https://lwn.net/Articles/413076/ nix <div class="FormattedComment"> You'd also need a holepunch operation in the overlying filesystem, to be able to insert holes in the middle of an existing file.<br> </div> Wed, 03 Nov 2010 16:49:38 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/413074/ https://lwn.net/Articles/413074/ nye <div class="FormattedComment"> Ah, that makes sense - thanks.<br> </div> Wed, 03 Nov 2010 16:45:02 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/413054/ https://lwn.net/Articles/413054/ slothrop <div class="FormattedComment"> I have performance problems with my first generation<br> Vertex SSD if I use the ext4 discard option. So in <br> this case it is better to run fstrim as a cron job every <br> night. But if you have a good SSD with a fast ATA trim <br> implementation, the discard mount option is just fine.<br> </div> Wed, 03 Nov 2010 15:31:02 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/413049/ https://lwn.net/Articles/413049/ nye <div class="FormattedComment"> <font class="QuotedText">&gt;BTW a nice userspace program for the (ext4) FITRIM ioctl() command can be found here:</font><br> <p> In what circumstances would you want to use this rather than just mounting with the 'discard' option?<br> <p> I'm curious because I've just bought my first SSD and I'm wondering how best to maintain performance. At first I was thinking of reserving some unpartitioned space, but then it occurred to me that it would probably be better just to use an ext4 partition. That way I can use the space if I really need it at some point, but it can be 'reclaimed' by the SSD for its own purposes when there's nothing stored there. Is that not correct?<br> </div> Wed, 03 Nov 2010 15:18:48 +0000 'Support for the CAIF shared memory protocol has been added. ' https://lwn.net/Articles/413013/ https://lwn.net/Articles/413013/ trancecode <div class="FormattedComment"> Can anyone here point me to more info about the new CAIF protocol?<br> <p> I read the docs and googled a bit but it is not clear to me how to use/test it.<br> <p> Are there user space utilities available?<br> Is hardware essential? - I see a loopback implementation mentioned.<br> Do I need to buy a SonyEricsson Android phone for this to be useful? <br> (I might just do that if I can be sure to get one that will work) <br> </div> Wed, 03 Nov 2010 11:48:18 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412841/ https://lwn.net/Articles/412841/ butlerm <div class="FormattedComment"> Nothing stops clients from trimming free 2MB blocks using 4K block trim operations...<br> </div> Tue, 02 Nov 2010 16:51:04 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412808/ https://lwn.net/Articles/412808/ tardyp <div class="FormattedComment"> Seems one of the dev of vbox was answering on this topic a while ago.<br> <a href="http://forums.virtualbox.org/viewtopic.php?f=9&amp;t=18223#p80376">http://forums.virtualbox.org/viewtopic.php?f=9&amp;t=1822...</a><br> """<br> VD images files are typically mapped onto physical rotating media. These have high burst bandwidth but poor seek times (compared to SSD). The VDI format uses 2Mb pages for performance reasons. Dropping this to 4K to align it to the SDD driver technology would have a disastrous impact on real I/O performance (up to a factor of 10 slowdown say). Sorry, but this is a dumb idea.<br> """<br> This was not wrong 1 year ago.. now, I'm doing desktop virtualization on ssd laptop. I dont want my virtualdisk to grow undefinitively. I dont want spinning disk optimizations.<br> <p> <p> <p> </div> Tue, 02 Nov 2010 14:05:28 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412759/ https://lwn.net/Articles/412759/ mokki <div class="FormattedComment"> I think so. When the virtual block device run by virtualbox/kvm detects the trim command it could punch a hole to the disk image, freeing disk space.<br> <p> The xfs has an ioctl for punching holes to files. unfortunately a fallocate flag for deallocating space from 2007 has not been included in mainline.<br> </div> Tue, 02 Nov 2010 07:37:04 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412762/ https://lwn.net/Articles/412762/ slothrop <div class="FormattedComment"> That's an interesting idea, but it needs to be implemented<br> in virtualbox or qemu. Then you could issue the FITRIM <br> ioctl from the running guest and it would be intercepted <br> by these programs and acted upon accordingly. <br> </div> Tue, 02 Nov 2010 07:24:46 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412760/ https://lwn.net/Articles/412760/ bronson <div class="FormattedComment"> Right. And if you tell virtualbox which blocks on the virtual disk are no longer used, the backing file can be made more sparse.<br> <p> In theory, trim could be just as useful to loopback-mounted filesystems as it is to SSDs, no?<br> </div> Tue, 02 Nov 2010 06:39:49 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412757/ https://lwn.net/Articles/412757/ slothrop <div class="FormattedComment"> No. This is not about reducing sizes, its about telling<br> your SSD which blocks are not used by the filesystem currently, <br> so that they could be added to the internal list of available <br> blocks. This hopefully makes the SSD snappier and faster.<br> </div> Tue, 02 Nov 2010 04:51:40 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412728/ https://lwn.net/Articles/412728/ BenHutchings This is due to a botched disk upgrade; see <a href="http://lkml.org/lkml/2010/11/1/445">mail on LKML</a>. Tue, 02 Nov 2010 00:33:48 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412714/ https://lwn.net/Articles/412714/ corbet Linus forgot to push out the last stuff he committed, but it's there now. Tue, 02 Nov 2010 00:11:43 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412711/ https://lwn.net/Articles/412711/ nteon <div class="FormattedComment"> is there a reason linus's tree at <a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=summary">http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-...</a> doesn't have anything after 2.6.36-rc6? Did it move, or get rolled back for some reason?<br> </div> Tue, 02 Nov 2010 00:06:01 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412702/ https://lwn.net/Articles/412702/ tardyp <div class="FormattedComment"> Do you think this could be used to reduce the size of virtualbox'es variable size virtual disks?<br> <p> </div> Mon, 01 Nov 2010 23:16:04 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412695/ https://lwn.net/Articles/412695/ slothrop <div class="FormattedComment"> It now can also be found on sourceforge:<br> <a href="http://sourceforge.net/projects/fstrim/">http://sourceforge.net/projects/fstrim/</a><br> </div> Mon, 01 Nov 2010 21:31:00 +0000 The second half of the 2.6.37 merge window https://lwn.net/Articles/412694/ https://lwn.net/Articles/412694/ slothrop <div class="FormattedComment"> BTW a nice userspace program for the (ext4) FITRIM ioctl() command<br> can be found here:<br> <a href="http://www.spinics.net/lists/xfs/msg01837.html">http://www.spinics.net/lists/xfs/msg01837.html</a><br> It's called fstrim and works nicely on my Vertex SSD.<br> Compile and run as root (e.g.): fstrim -v /<br> (There is no visible feedback, you have to wait a few minutes <br> (depending on the size and state of the SSD) before it finishes.)<br> </div> Mon, 01 Nov 2010 21:22:32 +0000