Re: Allocating memory from PCI bus...

2003-08-19 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Brian J. McGovern [EMAIL PROTECTED] writes: : In 5.x, it appears that you call bus_alloc_resource() with the rid (BAR) of : the memory resource to actually obtain a resource structure to the memory. : Would you then call rman_get_virtual() to obtain the

Allocating memory from PCI bus...

2003-08-18 Thread Brian J. McGovern
If anyone whom responds could cc me, I'd appreciate it. I seem to be having a problem making the logic jump in bus resource allocation with FreeBSD 5.x. Its been awhile since I've done driver development (around early 3.x), where you would call pci_map_mem() to get the virtual and physical memory

[newbie] Allocating memory in kernel land

2003-06-30 Thread Paolo Pisati
Hi guys, as the subject says, i'm a newbie in kernel and i'm facing the task to port a userland program in kernel land (actually inside a netgraph node) and i was wondering how to threat the memory inside the kernel: are there any important things i should be aware of? like memory/stack limit,

Re: allocating memory

2002-06-07 Thread Nik Clayton
On Thu, Jun 06, 2002 at 12:47:54PM -0500, Mike Silbersack wrote: See the paper on porting NetBSD to hammer that was presented at some recent usenix convention for more info. (I think it was usenix, but I'm not sure.) BSDCon US 2002. It was presented by Frank van der Linden. From my notes

Re: allocating memory

2002-06-06 Thread Terry Lambert
Stephen Montgomery-Smith wrote: I have access to a rather large computer (3GB of RAM) and I would like to write a program to access most of this memory. I find that I am unable to malloc more than about 0.5 GB of memory, even if I do it in small increments. Now I am trying mmap, and this

Re: allocating memory

2002-06-06 Thread Miguel Mendez
On Thu, Jun 06, 2002 at 02:12:32AM -0700, Terry Lambert wrote: Why doesn't malloc work to get all the memory it can? I don't know; you would have to petition PHK for an answer as to why, since he is I honestly doubt it's a problem in phkmalloc :) As for topping out at ~2.5G: yes: that's

Re: allocating memory

2002-06-06 Thread Terry Lambert
Miguel Mendez wrote: As for topping out at ~2.5G: yes: that's what's expected. If you really need more memory than that, you will need to drop ~US$10K on a 64 bit Itanium machine, and petition Peter Wemm for the correct dead chicken to wave over the thing. Just out of curiosity, why

Re: allocating memory

2002-06-06 Thread Dag-Erling Smorgrav
Stephen Montgomery-Smith [EMAIL PROTECTED] writes: I have access to a rather large computer (3GB of RAM) and I would like to write a program to access most of this memory. I find that I am unable to malloc more than about 0.5 GB of memory, even if I do it in small increments. Now I am

Re: allocating memory

2002-06-06 Thread Eugene L. Vorokov
On Wed, Jun 05, 2002 at 11:56:57PM -0500, Stephen Montgomery-Smith wrote: I have access to a rather large computer (3GB of RAM) and I would like to write a program to access most of this memory. I find that I am unable to malloc more than about 0.5 GB of memory, even if I do it in small

Re: allocating memory

2002-06-06 Thread Dan Nelson
In the last episode (Jun 06), Andrew Gallatin said: Stephen Montgomery-Smith writes: I have access to a rather large computer (3GB of RAM) and I would like to write a program to access most of this memory. I find that I am unable to malloc more than about 0.5 GB of memory, even if I

Re: allocating memory

2002-06-06 Thread Terry Lambert
Miguel Mendez wrote: On Thu, Jun 06, 2002 at 05:04:56AM -0700, Terry Lambert wrote: How come? A Sun Blade 100 is about $1,000. That's not what I call expensive. It's not an E4500, but not a bad box once you load it with a bit more RAM and a SCSI controller. You can get Ultra 10 boxen pretty

Re: allocating memory

2002-06-06 Thread Terry Lambert
Andrew Gallatin wrote: [ ...Alpha 2G memory limit... ] The only known problem is nearly all PCI network drivers don't use busdma (disk controllers already use busdma). If you're willing to use a crappy ISA nic which either uses busdma or just does PIO, you should be fine. (newer alphas

Re: allocating memory

2002-06-06 Thread David Miller
On Thu, 6 Jun 2002, Miguel Mendez wrote: Except Itanium is nowhere production ready, so you probably need something else, e.g. sparc or ppc. Mips is also a nice arch to work with, btw, unfortunately SGI hardware is extremely expensive. Are there any estimates of when freebsd will move to 64

Re: allocating memory

2002-06-06 Thread Mike Silbersack
On Thu, 6 Jun 2002, David Miller wrote: Are there any estimates of when freebsd will move to 64 bits on the upcoming sledgehammer CPU from AMD? Rumor has it that adding such support will be relatively easy once actual hammer hardware appears. I believe that a few people had been working on

allocating memory

2002-06-05 Thread Stephen Montgomery-Smith
I have access to a rather large computer (3GB of RAM) and I would like to write a program to access most of this memory. I find that I am unable to malloc more than about 0.5 GB of memory, even if I do it in small increments. Now I am trying mmap, and this lets me get to about 2.5 GB of memory