Re: [PATCH] ohci1394: dma_pool_destroy while in_atomic() && irqs_disabled()

From: Parag Warudkar
Date: Sat Feb 19 2005 - 15:52:53 EST


On Saturday 19 February 2005 02:36 pm, David Brownell wrote:
> The cost of creating the dma_pool is the cost of one small kmalloc()
> plus (the expensive part) the /sys/devices/.../pools sysfs attribute
> is created along with the first pool.  (Use that instead of slabinfo
> for those pool allocations.)  That's why the normal spot to create and
> destroy dma pools is in driver probe() and remove() methods.

What's the format of /sys/devices/.../pools (Name of pool, ? ? ? ?) ? Can the
memory consumption be derived from it?
Here is what the ohci pools look during data read (Kino->Capture) and after
closing Kino -

During Kino Capture
[root@localhost pci0000:00]# cat ./0000:00:0a.0/0000:02:00.0/pools
poolinfo - 0.1
ohci1394 rcv prg 16 256 16 1 ------------------> This one is in question
ohci1394 trm prg 32 64 64 1
ohci1394 trm prg 32 64 64 1
ohci1394 rcv prg 4 256 16 1
ohci1394 rcv prg 4 256 16 1

After Closing Kino
[root@localhost pci0000:00]# cat ./0000:00:0a.0/0000:02:00.0/pools
poolinfo - 0.1
ohci1394 trm prg 32 64 64 1
ohci1394 trm prg 32 64 64 1
ohci1394 rcv prg 4 256 16 1
ohci1394 rcv prg 4 256 16 1

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