From alsa-devel-owner@alsa.jcu.cz  Thu Feb 18 22:29:42 1999
Received: from vipunen.hut.fi (vipunen-a.hut.fi [130.233.249.7])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id WAA15538
	for <alsa-devel@alsa.jcu.cz>; Thu, 18 Feb 1999 22:27:12 +0100
Received: from alpha.hut.fi (iheino@alpha.hut.fi [130.233.224.50])
	by vipunen.hut.fi (8.9.2/8.9.1) with SMTP id XAA97034;
	Thu, 18 Feb 1999 23:26:56 +0200
Date: Thu, 18 Feb 1999 23:26:56 +0200 (EET)
From: Tuomas Heino <iheino@cc.hut.fi>
To: Raphael Becker <beckerra@rumms.uni-mannheim.de>
cc: Linux-Kernel Mailinglist <linux-kernel@vger.rutgers.edu>,
        alsa-devel@alsa.jcu.cz, support@4front-tech.com
Subject: 2.2.x memory allocation (was Re: TEAC CD-R55S doesn't work) 
In-Reply-To: <36CB62ED.28F5E547@rumms.uni-mannheim.de>
Message-ID: <Pine.OSF.3.96.990218225200.10998A-100000@alpha.hut.fi>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Thu, 18 Feb 1999, Raphael Becker wrote:

[snip]
> RAM: 96 MB
[snip]
> cdrecord: Cannot allocate memory. Cannot send SCSI cmd via ioctl
[snip]
>  _    _ Powered by SuSE___   ___   _  
> | |  (_)_ _ _  ___ __ |_  ) |_  ) / | 
> | |__| | ' \ || \ \ /  / / _ / / _| | 
> |____|_|_||_\_,_/_\_\ /___(_)___(_)_|

Hmm... I think there's something wrong with the way 2.2.1 allocates memory...
... as in there seems to be no memory for some parts of the kernel... like
DMA:ble memory for example
let me show you what trying to get sound working w/ 2.2.1 gave me:

# uptime
 11:10pm  up 19 days,  2:22, 10 users,  load average: 1.04, 1.01, 1.00

## OSS/free (standard sound driver)
# modprobe gus
# strace head -c 0 /dev/audio
open("/dev/audio", O_RDONLY)            = -1 ENOMEM (Cannot allocate memory)
Sound error: Couldn't allocate DMA buffer

# free
             total       used       free     shared    buffers     cached
Mem:        128068     125036       3032      31456      48772      10116
-/+ buffers/cache:      66148      61920
Swap:       130748        996     129752

# modprobe -r gus

## ALSA
# modprobe snd-interwave; amixer -r
# strace head -c 0 /proc/asound/dev/pcmC0D0
open("/proc/asound/dev/pcmC0D0", O_RDONLY) = -1 ENOMEM (Cannot allocate memory)
# modprobe -r snd-interwave

## OSS/Linux
# soundon
This copy of OSS is licensed to Tuomas Heino
Sound error: Couldn't allocate DMA buffer
Sound error: Couldn't allocate DMA buffer
Sound error: Couldn't allocate DMA buffer
# soundoff

# free
             total       used       free     shared    buffers     cached
Mem:        128068     123852       4216      31456      46476      11380
-/+ buffers/cache:      65996      62072
Swap:       130748        996     129752



# free; modprobe gus; head -c 0 /dev/audio; modprobe -r gus; modprobe \
  snd-interwave; head -c 0 /proc/asound/dev/pcmC0D0; modprobe -r \
  snd-interwave; soundon; soundoff; free
             total       used       free     shared    buffers     cached
Mem:        128068     123868       4200      31456      46492      11380
-/+ buffers/cache:      65996      62072
Swap:       130748        996     129752
Sound error: Couldn't allocate DMA buffer
head: /dev/audio: Cannot allocate memory
isapnp: Device 'UltraSound Plug & Play'
isapnp: 1 Plug & Play device detected total
head: /proc/asound/dev/pcmC0D0: Cannot allocate memory
This copy of OSS is licensed to Tuomas Heino
Sound error: Couldn't allocate DMA buffer
Sound error: Couldn't allocate DMA buffer
Sound error: Couldn't allocate DMA buffer
             total       used       free     shared    buffers     cached
Mem:        128068     123892       4176      31456      46504      11380
-/+ buffers/cache:      66008      62060
Swap:       130748        996     129752
... hmm doesn't seem to affect free memory too much ... gotta stop writing this message ;)


