* [gentoo-user] jbd2 keeps spinning my disk up @ 2011-07-31 15:50 Peter Humphrey 2011-07-31 16:05 ` Michael Mol ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Peter Humphrey @ 2011-07-31 15:50 UTC (permalink / raw To: gentoo-user Hello list, My little Atom box's hard disk spins up every minute or so, and watching iotop I see it's jbd2 that does it. This is a kernel component, and the menuconfig help text says it's set automatically by having the block layer included (and who hasn't?) together with ext4. Google shows that others have similar problems. Before I re-create all the partitions as reiserfs - and remove ext4 from the kernel - does anyone have a lighter solution? -- Rgds Peter Linux Counter 5290, 1994-04-23 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] jbd2 keeps spinning my disk up 2011-07-31 15:50 [gentoo-user] jbd2 keeps spinning my disk up Peter Humphrey @ 2011-07-31 16:05 ` Michael Mol 2011-07-31 17:39 ` Peter Humphrey 2011-07-31 21:40 ` Florian Philipp 2011-08-01 18:33 ` [gentoo-user] " James 2 siblings, 1 reply; 8+ messages in thread From: Michael Mol @ 2011-07-31 16:05 UTC (permalink / raw To: gentoo-user On Sun, Jul 31, 2011 at 11:50 AM, Peter Humphrey <peter@humphrey.ukfsn.org> wrote: > Hello list, > > My little Atom box's hard disk spins up every minute or so, and watching > iotop I see it's jbd2 that does it. > > This is a kernel component, and the menuconfig help text says it's set > automatically by having the block layer included (and who hasn't?) together > with ext4. > > Google shows that others have similar problems. > > Before I re-create all the partitions as reiserfs - and remove ext4 from the > kernel - does anyone have a lighter solution? If it's a polling commit-journal-to-disk behavior, there's certain to be a configurable parameter somewhere to control the poll rate. However, if it's doing that, then it probably has something it needs to write to disk. That might be metadata updates. Have you tried adding things to your mount parameters like 'noatime' or 'relatime'? What about "data=writeback"? -- :wq ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] jbd2 keeps spinning my disk up 2011-07-31 16:05 ` Michael Mol @ 2011-07-31 17:39 ` Peter Humphrey 2011-07-31 18:26 ` Alan McKinnon 2011-07-31 21:29 ` Michael Mol 0 siblings, 2 replies; 8+ messages in thread From: Peter Humphrey @ 2011-07-31 17:39 UTC (permalink / raw To: gentoo-user On Sunday 31 July 2011 17:05:39 Michael Mol wrote: > However, if it's doing that, then it probably has something it needs to > write to disk. That might be metadata updates. What, at least once a minute? While the system's idling, waiting for something to do? Doesn't sound likely to me. > Have you tried adding things to your mount parameters like 'noatime' or > 'relatime'? I've been specifying 'noatime' on all partitions for several years now; it's automatic behaviour on my part. > What about "data=writeback"? I don't like the sound of the warning in the man page. Thanks for the ideas. So far I'm inclining to the reformatting I mentioned. -- Rgds Peter Linux Counter 5290, 1994-04-23 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] jbd2 keeps spinning my disk up 2011-07-31 17:39 ` Peter Humphrey @ 2011-07-31 18:26 ` Alan McKinnon 2011-07-31 21:29 ` Michael Mol 1 sibling, 0 replies; 8+ messages in thread From: Alan McKinnon @ 2011-07-31 18:26 UTC (permalink / raw To: gentoo-user On Sun 31 July 2011 18:39:21 Peter Humphrey did opine thusly: > On Sunday 31 July 2011 17:05:39 Michael Mol wrote: > > However, if it's doing that, then it probably has something it > > needs to write to disk. That might be metadata updates. > > What, at least once a minute? While the system's idling, waiting for > something to do? Doesn't sound likely to me. Sounds like the kind of thing cron would do - log something once a minute -- alan dot mckinnon at gmail dot com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] jbd2 keeps spinning my disk up 2011-07-31 17:39 ` Peter Humphrey 2011-07-31 18:26 ` Alan McKinnon @ 2011-07-31 21:29 ` Michael Mol 1 sibling, 0 replies; 8+ messages in thread From: Michael Mol @ 2011-07-31 21:29 UTC (permalink / raw To: gentoo-user On Sun, Jul 31, 2011 at 1:39 PM, Peter Humphrey <peter@humphrey.ukfsn.org> wrote: > On Sunday 31 July 2011 17:05:39 Michael Mol wrote: > >> However, if it's doing that, then it probably has something it needs to >> write to disk. That might be metadata updates. > > What, at least once a minute? While the system's idling, waiting for > something to do? Doesn't sound likely to me. > >> Have you tried adding things to your mount parameters like 'noatime' or >> 'relatime'? > > I've been specifying 'noatime' on all partitions for several years now; it's > automatic behaviour on my part. > >> What about "data=writeback"? > > I don't like the sound of the warning in the man page. > > Thanks for the ideas. So far I'm inclining to the reformatting I mentioned. Here's what I think is happening: ext3/ext4 is not going to arbitrarily poll writes to disk without there being something to write. Some program, somewhere on your system is doing something that involves modifying a file. Any filesystem that provides guarantees about disk integrity is going to get that data to a physically persistent state ASAP. That's why we have journaled filesystems in the first place: to speed that up. So, with the same application and configuration set, you're going to see the same behavior on any filesystem which provides such guarantees. You're perfectly welcome to reformat if you're so inclined; it really sounds like you're simply more comfortable (or more interested in) reiserfs. If you perceive that that solve your problem, great--but I don't think that would really solve the underlying technical issue. What you really want to do is find some way to log what's actually driving the data writes. If it were a particular app, it'd be as simple as launching the app via strace and analyzing the output. I don't know how one would do that system-wide, though. Perhaps someone else might have ideas. -- :wq ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] jbd2 keeps spinning my disk up 2011-07-31 15:50 [gentoo-user] jbd2 keeps spinning my disk up Peter Humphrey 2011-07-31 16:05 ` Michael Mol @ 2011-07-31 21:40 ` Florian Philipp 2011-08-01 15:36 ` Peter Humphrey 2011-08-01 18:33 ` [gentoo-user] " James 2 siblings, 1 reply; 8+ messages in thread From: Florian Philipp @ 2011-07-31 21:40 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 634 bytes --] Am 31.07.2011 17:50, schrieb Peter Humphrey: > Hello list, > > My little Atom box's hard disk spins up every minute or so, and watching > iotop I see it's jbd2 that does it. > > This is a kernel component, and the menuconfig help text says it's set > automatically by having the block layer included (and who hasn't?) together > with ext4. > > Google shows that others have similar problems. > > Before I re-create all the partitions as reiserfs - and remove ext4 from the > kernel - does anyone have a lighter solution? > Does laptop-mode help? app-laptop/laptop-mode-tools Regards, Florian Philipp [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 262 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] jbd2 keeps spinning my disk up 2011-07-31 21:40 ` Florian Philipp @ 2011-08-01 15:36 ` Peter Humphrey 0 siblings, 0 replies; 8+ messages in thread From: Peter Humphrey @ 2011-08-01 15:36 UTC (permalink / raw To: gentoo-user On Sunday 31 July 2011 22:40:28 Florian Philipp wrote: > Does laptop-mode help? > app-laptop/laptop-mode-tools I hadn't thought of that - thanks. I'll try it and see. -- Rgds Peter Linux Counter 5290, 1994-04-23 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: jbd2 keeps spinning my disk up 2011-07-31 15:50 [gentoo-user] jbd2 keeps spinning my disk up Peter Humphrey 2011-07-31 16:05 ` Michael Mol 2011-07-31 21:40 ` Florian Philipp @ 2011-08-01 18:33 ` James 2 siblings, 0 replies; 8+ messages in thread From: James @ 2011-08-01 18:33 UTC (permalink / raw To: gentoo-user Peter Humphrey <peter <at> humphrey.ukfsn.org> writes: > My little Atom box's hard disk spins up every minute or so, and watching > iotop I see it's jbd2 that does it. > Google shows that others have similar problems. > Before I re-create all the partitions as reiserfs - and remove ext4 from the > kernel - does anyone have a lighter solution? Well, lots in good responses, so please do not interpret mine as saying it's a better solution that what others are suggestion. Atom is more of an embedded processor than a true workstation/server processor, imho. As such, it it more "bare metal" meaning countless software developments for AMD and Intel processors intended for workstations and servers, are irrelevant, useless, harmful, redundant, or just plain stupid for embedded processors. like the atom. So now you (and I and millions of folks) are trying to use mega-software (linux distro) on a bare-metal processor.... NOBODY has fleshed out these issues on an itemized basis. i.e. the knowledge base is sparse (at best) since the only one that can really do this is the silicon vendors and they have a VESTED INTEREST in not doing so. Furthermore, since Atom and ARM and many other embedded processors are combined as "cores" on an SOC (system on a chip) each revision of such hardware by each vendor can have different addtional hardware on the SOC that a generic compiled software distro is clueless about. That's why numerous devices that attempt low power linux, use a proprietary linux based on montaVista or countlesss other embedded linux vendors. These purveyors and vendors of the various embedded linux offerings do not publish anything about these hardware details for some issues and do include documentation, deep in the specifications of the processor. When you stray from that (the linux distro that come with the product), you are on your own, finding piecemeal information about low level hardware intricacies....ad-nossium.....imho. If the device came with some OS other than a linux hack..... YOu are much futher from paradise then with a default linux distro as the OS the vendor provided. It does not mean you will not be successful, just your journey is perilous, at best, if optimization is what you seek. Long story short, for years I have been building firewalls and embedded linux bridges, sniffers and other passive ethernet based devices, using ext2. Works beautifully with little attention. Not optimized, but avoid a HUGE time-sink. I encounter a myriad of issues, when trying newer file systems for embedded linux systems. Ext-2 works for years on Compact Flash drives if you do not log, or limit logs to an NFS link or such. As one reader suggested, you have to audit, one application at a time, to find the culprit. It's actually a never ending process, imho, as feature creep on a myriad of software packages will usually lead to performance issues and thus more aggressive algorithms on data movement. You may want to try some of the file systems intended for embedded system (as part of the newer linux kernels) and the tuning parameters therein, if you are looking for a robust solution. Also delete what you do not need from the atom based system, just as a general policy. Minimal and embedded are different facets of the same thing. Intel atom is first and foremost an embedded processor, not a CISC processor. I.E. just because it compiles, does not mean it runs well on limited resources or bare metal. Happy Hunting, James ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-08-01 18:34 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-07-31 15:50 [gentoo-user] jbd2 keeps spinning my disk up Peter Humphrey 2011-07-31 16:05 ` Michael Mol 2011-07-31 17:39 ` Peter Humphrey 2011-07-31 18:26 ` Alan McKinnon 2011-07-31 21:29 ` Michael Mol 2011-07-31 21:40 ` Florian Philipp 2011-08-01 15:36 ` Peter Humphrey 2011-08-01 18:33 ` [gentoo-user] " James
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox