From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,76791a8a7236b3d5 X-Google-Attributes: gidfee84,public From: jeffc@world.std.com (Jeffrey D Carter) Subject: Re: [Q] syncing disks -- failure? Date: 1995/05/26 Message-ID: #1/1 X-Deja-AN: 103354604 references: <3q2o5l$3ck@valhalla.cs.wright.edu> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.unix.osf.osf1 pedwards@valhalla.cs.wright.edu (Phil Edwards) writes: > Occasionally, when one of our DEC Alpha 4000/610 AXP's running OSF/1 > 3.0 crashes, the disk sync will fail. When it does, a number is > echoed to the screen several times, such as: > syncing disks... 7 7 7 7 7 7 7 7 7 7 7 7 7 failed > Nobody here knows what those numbers mean. It isn't critical that we > find out, but I'm curious about these kinds of things, so if anybody > out there is good at playing the "OSF/1 Trivia You'll Never Need > Again" game, please fill me in. :-) The numbers are a count of "dirty" buffers in the buffer cache remaining to be written to disk (more accurately, it is a count of dirty buffers to be _complete_ their writes to disk, since they are queued to the driver between the "..." and the first 7). The kernel loops, waiting for the count to go to zero before declaring that it has synched the disks. The "failure" (and the non-decreasing numbers) indicate that the code in question has interrupts disabled during the loop. Amazingly enough :-) the disk driver is unable to interrupt and mark the dirty buffers as clean, so the count doesn't go down... Various versions of OSF/1 have this problem, it dates from the the original code. If it only happens after panics, I wouldn't worry about it. If it happens on normal shutdown, it is a bug that needs fixing. (The code may also need a preempt point in certain cases, in addition to enabling interrupts).