From: pascal on
i have question and looking for help.

the situation: the appliction needs to read from the driver/Board (PCIe)
data rate of about ~2GByte/s to the pc first save it to memory then to buffer
it to loacal drive for later process.

question: who will allocate the memory the appliction from the user mode and
pass it to the driver? can the driver allocate that memory from the kernel?
(OS x64)
what can of design patten should i used for example? any advice?


From: Maxim S. Shatskih on
> question: who will allocate the memory the appliction from the user mode and
> pass it to the driver?

Better to do this, so that there will be no extra memcpy().

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Tim Roberts on
pascal <pascal(a)discussions.microsoft.com> wrote:
>
>i have question and looking for help.
>
>the situation: the appliction needs to read from the driver/Board (PCIe)
>data rate of about ~2GByte/s to the pc first save it to memory then to buffer
>it to loacal drive for later process.

For how long? Hot drives can save about 40MB/s, so you will need to store
it all in memory.
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.
From: pascal on
if i need to store in all data in memory for example 6 GByte all in memory
(64bit OS), the question is what memory? Virtual /physical VirtualAlloc can
reserve 6 GByte in the Virtual memory page file but will that will be too
slow? i mean that windows memory manger may could not stand up to the rate of
data needed to writen to the page file.
or use physical memory, what is the best way/practice ?

Thanks

"Tim Roberts" wrote:

> pascal <pascal(a)discussions.microsoft.com> wrote:
> >
> >i have question and looking for help.
> >
> >the situation: the appliction needs to read from the driver/Board (PCIe)
> >data rate of about ~2GByte/s to the pc first save it to memory then to buffer
> >it to loacal drive for later process.
>
> For how long? Hot drives can save about 40MB/s, so you will need to store
> it all in memory.
> --
> Tim Roberts, timr(a)probo.com
> Providenza & Boekelheide, Inc.
> .
>
From: Maxim S. Shatskih on
> For how long? Hot drives can save about 40MB/s

More. 80 is real, but... after ~30 sec of such writing, some drives do the internal recalibration, which means that all next writes are stopped for 10s or such.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com