Re: pci_alloc_consistent question

Ralf Baechle (ralf@uni-koblenz.de)
Fri, 19 Oct 2001 23:59:51 +0200


On Fri, Oct 19, 2001 at 03:24:14PM -0600, MEHTA,HIREN (A-SanJose,ex1) wrote:

> so, what is the conservative number ? 1MB ?

Even far below that. Most systems will allocate that memory using
get_free_pages and by allocating large pages such as 1mb you'll produce
high memory pressure. Try to get away with PAGE_SIZE * 2 if you can.
Large allocation are only ok if they're rare.

Ralf
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/