All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Chris Rankin <rankincj@yahoo.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: "Cannot allocate memory" problem with latest CVS
Date: Mon, 28 Oct 2002 13:08:22 +0100	[thread overview]
Message-ID: <s5h8z0i4vgp.wl@alsa2.suse.de> (raw)
In-Reply-To: <20021027180541.43540.qmail@web40608.mail.yahoo.com>

Hi,

At Sun, 27 Oct 2002 18:05:41 +0000 (GMT),
Chris Rankin wrote:
> 
> Hi,
> 
> The 'cannot allocate memory' problem has returned on
> my machine:
> 
(snip) 
> 
> $ free -t
>              total       used       free     shared   
> buffers     cached
> Mem:       1033544    1020348      13196          0   
>   30228     748684
> -/+ buffers/cache:     241436     792108
> Swap:       498004      10668     487336
> Total:     1531548    1031016     500532
> 
> 
> $ vmstat
>    procs                      memory      swap        
>  io     system      cpu
>  r  b  w   swpd   free   buff  cache   si   so    bi  
>  bo   in    cs us sy id
>  2  0  0  10668  13096  30284 748728    0    0     1  
>   3   10    14 97  3  0
> 
> 
> I am using the snd-emu10k1 driver with a SB-Live!
> card, on a 2.4.19-SMP box with 1 GB memory, so this
> out-of-memory error is a bit of a mystery. Are there
> any other statistics that would be useful? I expect
> (hope!) that this error will disappear soon, so I'd
> recommend a swift response, if required.

i guess actually your box has no free space "for the sb live card".
the emu10k1 chip requires the 29bit PCI DMA mask, and it cannot use
the whole 1GB memory.  hence, even if you have memory on the high-mem
region, still this problem may happen.

please note that the current emu10k1 driver allocates pages
dynamically at each pcm playback, while the older version grabbed the
large contiguous area at the module loading time.  this makes the
difference of behavior as you found before.

this problem could be solved by using get_free_page() with GFP_KERNEL
(without ATOMIC) like on 2.2 kernels, since pci_alloc_consistent()
uses always GFP_ATOMIC flag so that it can be called from interrupt
handlers.  but it would be really a hack...


Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  reply	other threads:[~2002-10-28 12:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-27 18:05 "Cannot allocate memory" problem with latest CVS Chris Rankin
2002-10-28 12:08 ` Takashi Iwai [this message]
2002-10-28 13:21   ` Chris Rankin
2002-10-28 15:15     ` Takashi Iwai
2002-10-28 20:26       ` Chris Rankin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h8z0i4vgp.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=rankincj@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.