Two kernel problems

Martin Schulze (linux-kernel@infodrom.north.de)
Mon, 24 Aug 1998 14:00:41 +0200


--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hi,

I have occurr two severe problems with Linux. One of them forces me
to reboot the machine it occurres on. As soon as my employee knows
about it'll be difficult for me to ague pro-Linux. So please take a
look at it and give me some advice.

1. Can't open /dev/dsp!

This one fortunately doesn't force me to do a reboot.

It occurrs randomly when I try to read or write from/to /dev/dsp,
e.g. by trying to play one mp3 file.

I seem to recall that partially I saw a message telling me
something with no memory left. Indeed I remember somebody telling
me that this is a problem with fragmented buffers in the Linux
kernel. Used kernel 2.0.33.

The machine on which I have this problem is constantly swapped with
~20MB and has ~20MB buffers.

Workaround: tail -f /dev/zero and C-c when RAM is filled up.

If the problem is due to fragmented buffers I wonder if this will
be fixed in 2.2 and if some poeple are working on it.

2. block on freelist at <address> isn't free

mm/kmalloc.c:

/*
* Ugh, this is ugly, but we want the default case to run
* straight through, which is why we have the ugly goto's
*/
void *kmalloc(size_t size, int priority)
{
[..]
p =3D page->firstfree;
if (p->bh_flags !=3D MF_FREE)
goto not_free_on_freelist;
[..]
not_free_on_freelist:
restore_flags(flags);
printk("Problem: block on freelist at %08lx isn't free.\n", * (long) p);
return NULL;

Somebody told me that this is due to a buggy ext2 but since this
looks like a memory problem to me I doubt.

*This* problem is severe since it forces me reboot the machine at
least after 7 days. Do I need to mention that this suxx?

Whenever this error occurs, the console is filled up with such
lines and the system is *not* useable anymore. Only a hard reset
helps. This machine runs kernel 2.0.35. (It still runs libc4, but
I doubt that this is a reason.)

Is there a way to a) fix this or b) to silently ignore this and
print *one* message with printk? The message could contain the
numbers of not freed free pages so the admin can decide on her own
if a reboot is appropriate or not.

Thanks for *any* answer. The second problem makes life *very*
difficult for me.

Regards,

Joey

--=20
If you come from outside of Finland, you live in wrong country.
-- motd of irc.funet.fi

--7JfCtLOvnd9MIVvH
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia

iQCVAwUBNeFV6RRNm5Suj3z1AQGlYwP+LTsz6wHjVw0vO3E0H6m8XcVL45aMK8hP
Kc+Q9RoSpaxsgNcFm98MZIWp+jzsDCzPwQ9b/xSDX83bNBfg6grDX0iQRe+cnWKK
QKp4LVYC/i0bNsKNRTsp8UUUEHjBnbQ/+VP/mgQrlDfoevy3v0rVmHahviySkBTi
VyYWEXRez3s=
=91Ru
-----END PGP SIGNATURE-----

--7JfCtLOvnd9MIVvH--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html