mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: wbrana@gmail.com
Cc: linux-kernel@vger.kernel.org, "Jaroslav Kysela" <perex@suse.cz>,
	"Takashi Iwai" <tiwai@suse.de>
Subject: Re: [PATCH] snd-hda-intel: fix insufficient memory
Date: Wed, 22 Nov 2006 12:04:22 -0800	[thread overview]
Message-ID: <20061122120422.7f1f96fe.akpm@osdl.org> (raw)
In-Reply-To: <a769871e0611220919q62ccdb5k5548062300e35376@mail.gmail.com>

On Wed, 22 Nov 2006 18:19:49 +0100
wbrana@gmail.com wrote:

> Module uses shorter buffer if memory isn't sufficient.
> It doesn't change size of allocated memory automatically.
> User has to change it with command like this:
> echo 256 > /proc/asound/card0/pcm0p/sub0/prealloc
> I can change it, but many regular users don't know it.
> This card is used in new PCs, which have at least 256 MB RAM.
> 256 kB shouldn't be too much. Whole block isn't used if it isn't needed.

That didn't answer my question.

> On 11/22/06, Andrew Morton <akpm@osdl.org> wrote:
> > On Tue, 21 Nov 2006 21:33:29 +0100
> > wbrana@gmail.com wrote:
> >
> > > Module allocates insufficient memory for multichannel and high quality
> > > audio (96 kHz, 24 bit)
> > > Patch for 2.6.19-* changes default/maximal size from 64/128 to 256/4096 kB.
> > >
> > > --- sound/pci/hda/hda_intel.c.orig      2006-09-29 13:40:36.000000000 +0200
> > > +++ sound/pci/hda/hda_intel.c   2006-11-05 16:45:13.000000000 +0100
> > > @@ -1270,5 +1270,5 @@
> > >         snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
> > >                                               snd_dma_pci_data(chip->pci),
> > > -                                             1024 * 64, 1024 * 128);
> > > +                                             1024 * 256, 1024 * 4096);
> > >         chip->pcm[pcm_dev] = pcm;
> > >         if (chip->pcm_devs < pcm_dev + 1)
> >
> > This was recently increased, but not by such a large amount:
> >
> >         snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
> >                                               snd_dma_pci_data(chip->pci),
> >                                               1024 * 64, 1024 * 1024);
> >
> > is that sufficient?
> >

Are the new settings of 64kb and 1MB sufficient?  If not, by how much must
they be increased, and why?


  reply	other threads:[~2006-11-22 20:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-21 20:33 wbrana
2006-11-22  6:46 ` Andrew Morton
2006-11-22 15:02   ` [RCU] adds a prefetch() in rcu_do_batch() Eric Dumazet
2006-11-22 17:48     ` [PATCH] dont insert pipe dentries into dentry_hashtable Eric Dumazet
2006-11-22 21:36       ` Andrew Morton
2006-11-22 21:40         ` Al Viro
2006-11-23  4:12         ` David Miller
2006-11-30  1:25     ` [RCU] adds a prefetch() in rcu_do_batch() Paul E. McKenney
2006-11-30  8:55       ` Eric Dumazet
2006-11-30 17:15         ` Paul E. McKenney
2006-11-22 17:19   ` [PATCH] snd-hda-intel: fix insufficient memory wbrana
2006-11-22 20:04     ` Andrew Morton [this message]
2006-11-23 20:17       ` wbrana
2006-11-23 21:10         ` Andrew Morton

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=20061122120422.7f1f96fe.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@suse.cz \
    --cc=tiwai@suse.de \
    --cc=wbrana@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®