Re: Purging the Page Table (was: Purging the Buffer Cache)

2000-12-21 Thread Al Peat

--- Juri Haberland <[EMAIL PROTECTED]>
wrote:
> Al Peat wrote:
> > 
> >   Is there any way to completely purge the buffer
> > cache -- not just the write requests (ala 'sync'
> or
> > 'update'), but the whole thing?  Can I just call
> > invalidate_buffers() or destroy_buffers()?
>
> What about the ioctl BLKFLSBUF ?
> If you are running a SuSE distrib there is already a
> tool called flushb
> that does what you want. If not, you can download
> the simple tool from
> http://innominate.org/~juri/flushb.tar.gz

  Another question: what if I need to purge the page
table of all files as well?  Is there a clean way to
do that?  I've been looking at /mm/memory.c, but it
doesn't look like clear_page_tables, etc. get
exported.

  I need /all/ read requests to go to disk, and it'd
be nice if I could do that without a reboot (but I'll
take the reboot if that's the only way to go about it
:)

  Thanks again,
Al

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Purging the Page Table (was: Purging the Buffer Cache)

2000-12-21 Thread Al Peat

--- Juri Haberland [EMAIL PROTECTED]
wrote:
 Al Peat wrote:
  
Is there any way to completely purge the buffer
  cache -- not just the write requests (ala 'sync'
 or
  'update'), but the whole thing?  Can I just call
  invalidate_buffers() or destroy_buffers()?

 What about the ioctl BLKFLSBUF ?
 If you are running a SuSE distrib there is already a
 tool called flushb
 that does what you want. If not, you can download
 the simple tool from
 http://innominate.org/~juri/flushb.tar.gz

  Another question: what if I need to purge the page
table of all files as well?  Is there a clean way to
do that?  I've been looking at /mm/memory.c, but it
doesn't look like clear_page_tables, etc. get
exported.

  I need /all/ read requests to go to disk, and it'd
be nice if I could do that without a reboot (but I'll
take the reboot if that's the only way to go about it
:)

  Thanks again,
Al

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Purging the Buffer Cache

2000-12-19 Thread Al Peat

  Is there any way to completely purge the buffer
cache -- not just the write requests (ala 'sync' or
'update'), but the whole thing?  Can I just call
invalidate_buffers() or destroy_buffers()?

  I know, why in the world would a person do such a
thing?  Research.  It'd be easier for me to write a
little program or add it to a module than wait for a
reboot each time I need a clean buffer cache.

  Thanks in advance,
Al
  

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Purging the Buffer Cache

2000-12-19 Thread Al Peat

  Is there any way to completely purge the buffer
cache -- not just the write requests (ala 'sync' or
'update'), but the whole thing?  Can I just call
invalidate_buffers() or destroy_buffers()?

  I know, why in the world would a person do such a
thing?  Research.  It'd be easier for me to write a
little program or add it to a module than wait for a
reboot each time I need a clean buffer cache.

  Thanks in advance,
Al
  

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



e2fs block to physical block translation

2000-12-11 Thread Al Peat

Quick question about blocks:

  If I assume my hard drive uses 512 blocks, and my
ext2 filesystem uses 4k blocks, can I assume the
following formula for translation?

  physical block # / 8  =  e2fs block #

  Thanks,
  Al

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



e2fs block to physical block translation

2000-12-11 Thread Al Peat

Quick question about blocks:

  If I assume my hard drive uses 512 blocks, and my
ext2 filesystem uses 4k blocks, can I assume the
following formula for translation?

  physical block # / 8  =  e2fs block #

  Thanks,
  Al

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



put/get_module_symbol vs. inter_module_register/put/get/etc.

2000-12-01 Thread Al Peat

  I've followed the thread on "Persistent module
storage" but haven't come across a general explanation
of the changes to the inter-module symbol stuff
between 2.4test10 and test11.  Anyone care to comment
on the differences or on whether this is going to be a
stable API for 2.4 (it won't be changed again)?


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



put/get_module_symbol vs. inter_module_register/put/get/etc.

2000-12-01 Thread Al Peat

  I've followed the thread on "Persistent module
storage" but haven't come across a general explanation
of the changes to the inter-module symbol stuff
between 2.4test10 and test11.  Anyone care to comment
on the differences or on whether this is going to be a
stable API for 2.4 (it won't be changed again)?


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



hard_sector / hard_nr_sectors

2000-10-30 Thread Al Peat

  I was wondering if someone could give me a quick
overview of the differences between sector/nr_sectors
and hard_sector/hard_nr_sectors in blk_dev.h's request
structure, or point me to some
documentation/discussion on this?

Thanks in advance,
Al

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



hard_sector / hard_nr_sectors

2000-10-30 Thread Al Peat

  I was wondering if someone could give me a quick
overview of the differences between sector/nr_sectors
and hard_sector/hard_nr_sectors in blk_dev.h's request
structure, or point me to some
documentation/discussion on this?

Thanks in advance,
Al

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



No Subject

2000-10-24 Thread Al Peat

  I was wondering if someone could give me a quick
overview of the differences between sector/nr_sectors
and hard_sector/hard_nr_sectors in blk_dev.h's request
structure, or point me to some
documentation/discussion on this?

  Thanks in advance,
Al Peat

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



No Subject

2000-10-24 Thread Al Peat

  I was wondering if someone could give me a quick
overview of the differences between sector/nr_sectors
and hard_sector/hard_nr_sectors in blk_dev.h's request
structure, or point me to some
documentation/discussion on this?

  Thanks in advance,
Al Peat

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



module reentrancy

2000-10-06 Thread Al Peat

  I could use a little advice on reentrancy issues for
modules.

  I have written a device driver that is nothing more
than a circular FIFO buffer in memory.  The read and
write methods access user space, so I know that those
sections of code need to be reentrant.  Since the
module represents one shared buffer, I use a couple of
global variables to keep track of the begin and end of
the buffer.  I understand that the filp->private field
provides some protection for reentrancy, but don't
know if that is appropriate in this case.  Would a
rwlock be a good solution?  The buffer is going to be
used to collect some information from a modified IDE
subsystem, so it will be written to many times in
short periods of time, and thus needs to have
efficient write methods.

  I've read all I could find on reentrancy in the
kernel docs and in Alessandro Rubini's excellent book.
 Any other pointers to things I could read (or good
examples of reentrant modules) would be appreciated.

  Thanks,
Al

__
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



module reentrancy

2000-10-06 Thread Al Peat

  I could use a little advice on reentrancy issues for
modules.

  I have written a device driver that is nothing more
than a circular FIFO buffer in memory.  The read and
write methods access user space, so I know that those
sections of code need to be reentrant.  Since the
module represents one shared buffer, I use a couple of
global variables to keep track of the begin and end of
the buffer.  I understand that the filp-private field
provides some protection for reentrancy, but don't
know if that is appropriate in this case.  Would a
rwlock be a good solution?  The buffer is going to be
used to collect some information from a modified IDE
subsystem, so it will be written to many times in
short periods of time, and thus needs to have
efficient write methods.

  I've read all I could find on reentrancy in the
kernel docs and in Alessandro Rubini's excellent book.
 Any other pointers to things I could read (or good
examples of reentrant modules) would be appreciated.

  Thanks,
Al

__
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/