linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Fwd: Re: Plzz help me regarding HIGHMEM (PAE) confusion in Linux-2.4 ???
@ 2004-12-09 12:54 Fawad Lateef
  2004-12-09 18:36 ` William Lee Irwin III
  0 siblings, 1 reply; 2+ messages in thread
From: Fawad Lateef @ 2004-12-09 12:54 UTC (permalink / raw)
  To: wli; +Cc: linux-mm

--- William Lee Irwin III <wli@holomorphy.com> wrote:

> Only %cr3 is restricted to 32-bit physical
> addresses. The entries in
> the pgd's, pmd's, and pte's themselves are all
> 36-bit physical
> addresses.
> 

but what I saw is that the pgd is loaded in cr3 when
the switch_mm takes place in the scheduling of
process. And PGD is of 64bit size ................ can
u please explain this ???

Actually I m concerned in accessing 4GB to 32GB for
ramdisk, and when I used to access those through
kmap_atomic in a single module system crashes after
passing the first 4GB of RAM (screen shows garbage and
then system crashes), I got to know that a process can
only access 4GB, so I created kernel threads for each
4GB and allocated struct mm_struct entry to that
through mm_alloc function and then assigned that to
the task_struct->active_mm to each thread, (in thread
before mm_alloc I called daemonize too)......... 

Now I think that all threads are now different
processes, but the system crashing behaviour is the
same ............. kernel is 2.4.25 

Can u plz suggest me some way of doing this ???


Thanks 

Fawad Lateef


		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page ? Try My Yahoo!
http://my.yahoo.com 
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fwd: Re: Plzz help me regarding HIGHMEM (PAE) confusion in Linux-2.4 ???
  2004-12-09 12:54 Fwd: Re: Plzz help me regarding HIGHMEM (PAE) confusion in Linux-2.4 ??? Fawad Lateef
@ 2004-12-09 18:36 ` William Lee Irwin III
  0 siblings, 0 replies; 2+ messages in thread
From: William Lee Irwin III @ 2004-12-09 18:36 UTC (permalink / raw)
  To: Fawad Lateef; +Cc: linux-mm

On Thu, Dec 09, 2004 at 04:54:25AM -0800, Fawad Lateef wrote:
> but what I saw is that the pgd is loaded in cr3 when
> the switch_mm takes place in the scheduling of
> process. And PGD is of 64bit size ................ can
> u please explain this ???

The pgd is not loaded into %cr3, only its address.


On Thu, Dec 09, 2004 at 04:54:25AM -0800, Fawad Lateef wrote:
> Actually I m concerned in accessing 4GB to 32GB for
> ramdisk, and when I used to access those through
> kmap_atomic in a single module system crashes after
> passing the first 4GB of RAM (screen shows garbage and
> then system crashes), I got to know that a process can
> only access 4GB, so I created kernel threads for each
> 4GB and allocated struct mm_struct entry to that
> through mm_alloc function and then assigned that to
> the task_struct->active_mm to each thread, (in thread
> before mm_alloc I called daemonize too)......... 
> Now I think that all threads are now different
> processes, but the system crashing behaviour is the
> same ............. kernel is 2.4.25 
> Can u plz suggest me some way of doing this ???

There is only one kernel address space. You are probably actually
trying to write blkdev-highmem, but it would be far easier to populate
a ramfs at boot instead of using a ramdisk.

The ramdisk block driver is crusty and probably qualifies as broken
on 32-bit due to the resource scalability issues. It would be much
easier (and you'd encounter much less negative feedback) using ramfs or
a 64-bit architecture.


-- wli
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-09 18:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-09 12:54 Fwd: Re: Plzz help me regarding HIGHMEM (PAE) confusion in Linux-2.4 ??? Fawad Lateef
2004-12-09 18:36 ` William Lee Irwin III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox