public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Ankit Jain <ankitjain1580@yahoo.com>
To: jonathan@jonmasters.org
Subject: Re: Accessing memory with /dev/port
Date: Mon, 4 Oct 2004 06:29:26 +0100 (BST)	[thread overview]
Message-ID: <20041004052926.79727.qmail@web52903.mail.yahoo.com> (raw)
In-Reply-To: <35fb2e5904100219381fe06db9@mail.gmail.com>

hi
 
-- Jon Masters <jonmasters@gmail.com> wrote: 
> On Sun, 3 Oct 2004 01:17:22 +0900, aq
> <aquynh@gmail.com> wrote:
> 
> > I heard that it is possible to modify the kernel
> memory via some
> > special devices like /dev/mem, /dev/kmem,
> /dev/port and /dev/kcore.
> > There are some papers about that techniques
> concerning /dev/mem and
> > /dev/kmem, but I cannot find any information
> explaining how to do that
> > (access and modify the memory of kernel) with
> /dev/port and
> > /dev/kcore.
> > 
> > Anybody knows about these methods, please tell me?
> 
> The best thing to do is to consult the documentation
> for mmap and then

can u tell some place where i can go look for this
mmap. i had seen some places but the concepts are
theoretical. how to do things are nto told much

> experiment with mapping these devices and making
> changes to the mapped
> memory (make sure you perform any accesses to device
> memory using
> volatile keywords in your pointer declarations).
> However I'd be really
> very concerned if you want to actually modify kernel
> memory this way.

well i would like to see if the kernel memory can be
increased or in some way i can understand these
concepts(do u know any document or link)
> 
> The best way to send information to or from the
> kernel is to use a
> file in /proc and use conventional read/write file
> operations upon it.
> The is the way we do things in UNIX.

i want to know what is this file used for /proc/kcore

> 
> Having said that, there can be times when mapping
> the raw memory is
> useful - if for example you want to display the
> contents of various
> bits of kernel data structures. I'm mulling the idea
> of writing a GUI
> tool to visualise bits of kernel data graphically -
> I'm not bothered
> by keeping it all in sync and up to date, just a
> view. I bet it's been
> done.
> 

well my system is having all this
128 Mb Ram and redhat linux 9.0 kernel 2.4

now i see even on system with 512 Mb RAM the most of
the ram is occupied by GUI or xserver around 90% of
memory

there is no way to reduce this load? i want to tune it
for better performance and i also want GUI

thanks

Ankit

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

           reply	other threads:[~2004-10-04  5:29 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <35fb2e5904100219381fe06db9@mail.gmail.com>]

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=20041004052926.79727.qmail@web52903.mail.yahoo.com \
    --to=ankitjain1580@yahoo.com \
    --cc=jonathan@jonmasters.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