Jordan Geoghegan wrote:
> amd64 MAXDSIZ   : ((paddr_t)32*1024*1024*1024)
> i386 MAXDSIZ       : (3UL*1024*1024*1024)
> sparc64 MAXDSIZ : (8L*1024*1024*1024)
> mips64 MAXDSIZ  : 16UL*1024*1024*1024
> hppa MAXDSIZ      : 1*1024*1024*1024UL
> arm64 MAXDSIZ    : ((paddr_t)16*1024*1024*1024)
> 
> Could anyone tell me what the 'U' , "L' and '((paddr_t)' means?

Unsigned, long, and typedef for physical address. Casts to make sure the
multiplication doesn't overflow.

> I hope I'm reading this wrong, but does sparc64 have an 8GB per-process 
> limit? I will be shocked if a mips64 box can allocate more memory 
> per-process than a sparc64 T-series.

The limits are somewhat conservative, and there's no particular logic to any
of them (except maybe i386, which is about as large as it can possibly be).
They're generally set to be big enough that nobody complains.

Reply via email to