From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265880AbUACBWs (ORCPT ); Fri, 2 Jan 2004 20:22:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265886AbUACBWs (ORCPT ); Fri, 2 Jan 2004 20:22:48 -0500 Received: from fw.osdl.org ([65.172.181.6]:3223 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S265880AbUACBWp (ORCPT ); Fri, 2 Jan 2004 20:22:45 -0500 Date: Fri, 2 Jan 2004 17:23:40 -0800 From: Andrew Morton To: Calin Szonyi Cc: linux-kernel@vger.kernel.org Subject: Re: Memory management problem with 2.6.0 Message-Id: <20040102172340.130f75ba.akpm@osdl.org> In-Reply-To: References: <20031227194144.54d052d1.akpm@osdl.org> <20040101020406.4bbb2fdd.akpm@osdl.org> X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org caszonyi@rdslink.ro wrote: > > see atached file > mplayer: page allocation failure. order:1, mode:0x21 > Call Trace: > [] __alloc_pages+0x30c/0x350 > [] __get_free_pages+0x1f/0x50 > [] sound_alloc_dmap+0x9d/0x1a0 > [] ad_mute+0x20/0x40 > [] open_dmap+0x26/0x100 > [] DMAbuf_open+0x174/0x1a0 > [] audio_open+0xc2/0x250 > [] sound_open+0xf4/0x120 > [] soundcore_open+0x1e5/0x330 > [] soundcore_open+0x0/0x330 > [] chrdev_open+0xe8/0x210 > [] open_namei+0xac/0x3f0 > [] chrdev_open+0x0/0x210 > [] dentry_open+0x145/0x210 > [] filp_open+0x68/0x70 > [] sys_open+0x5b/0x90 > [] syscall_call+0x7/0xb > > Sound error: Couldn't allocate DMA buffer > esd: page allocation failure. order:4, mode:0x21 > Call Trace: > [] __alloc_pages+0x30c/0x350 > [] __get_free_pages+0x1f/0x50 > [] sound_alloc_dmap+0x9d/0x1a0 > [] ad_mute+0x20/0x40 > [] open_dmap+0x26/0x100 > [] DMAbuf_open+0x174/0x1a0 > [] audio_open+0xc2/0x250 > [] sound_open+0xf4/0x120 > [] soundcore_open+0x1e5/0x330 > [] soundcore_open+0x0/0x330 > [] chrdev_open+0xe8/0x210 > [] open_namei+0xac/0x3f0 > [] chrdev_open+0x0/0x210 > [] dentry_open+0x145/0x210 > [] filp_open+0x68/0x70 > [] sys_open+0x5b/0x90 > [] syscall_call+0x7/0xb sound_alloc_dmap() is trying to perform a 4-order GFP_ATOMIC allocation. There is just nothing the MM system can do about that - it is a basic design problem in that part of the OSS sound system. I'm not sure what to suggest - development and maintenance of OSS seems to have come to a stop. Can you use ALSA instead? If not, increasing /proc/sys/vm/min_free_kbytes by quite a lot will probably decrease the frequency at which this occurs.