Am Sonntag, den 05.11.2006, 16:26 +0100 schrieb Sean Durkin: > > I just installed a new linux box with the latest Ubuntu release. On this > > machine the system freezes (i.e. mouse pointer stalls, sound output > > stops...) at regular intervals when data is written to partitions > > encrypted using dm-crypt. I did some research and found that this used > > to be a problem in Linux 2.6.4 and you either had to upgrade your kernel > > or renice pdflush by hand to fix the problem. > > > > Ubuntu comes with kernel 2.6.17, and I checked the sources, pdflush is > > niced to priority 0, so that fix shouldn't be neccessary. I tried > > renicing pdflush up to +19, that did not change anything, so the problem > > must be somewhere else. > > > > The problem does not occur when writing to non-encrypted partitions, so > > I doubt it's hardware-related. > > > > Any ideas? Any pointers where else I should look? > > OK, it looks like now kjournald is the "culprit". On my old system with > Linux kernel 2.6.14 it has a proces priority of 0, in this Ubuntu > release it's nice'd to -5. If I re-nice it to 0, there are no more > hangs. This priority setting must be new in this kernel version... > > Are there any complications to be expected if I just renice kjournald in > my startup scripts or patch the kernel? Someone sent in a patch for 2.6.19 that added a private dm-crypt bio pool, as the old shared bio pool could be depleted by other users. I haven't seen this in the early 2.6 series, but is probably much more noticeable with recent changes. http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.18-rc7/2.6.18-rc7-mm1/broken-out/dm-crypt-use-private-biosets.patch This might need some hand-work, as it's on top of some other changes.
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil