From: William Lee Irwin III <wli@holomorphy.com>
To: Fawad Lateef <fawad_lateef@yahoo.com>
Cc: linux-mm@kvack.org
Subject: Re: Fwd: Re: Plzz help me regarding HIGHMEM (PAE) confusion in Linux-2.4 ???
Date: Thu, 9 Dec 2004 10:36:44 -0800 [thread overview]
Message-ID: <20041209183644.GB2714@holomorphy.com> (raw)
In-Reply-To: <20041209125425.85749.qmail@web53901.mail.yahoo.com>
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>
prev parent reply other threads:[~2004-12-09 18:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-09 12:54 Fawad Lateef
2004-12-09 18:36 ` William Lee Irwin III [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041209183644.GB2714@holomorphy.com \
--to=wli@holomorphy.com \
--cc=fawad_lateef@yahoo.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox