Re: how to flush out cache.?

2004-04-21 Thread Matthew Dillon
:Yes - but FreeBSD then calls vm_object_page_remove to remove the pages :from the vnode object. (vm_object_sync for 5.x or vm_map_clean for 4.x ) : :Mhhh .. 4.X removes the pages without flushing if the file is not write :mapped. :This means that anyone with read access can screw up a file. :(

Re: how to flush out cache.?

2004-04-21 Thread Stephan Uphoff
Stephan Uphoff wrote: > Matthew Dillon wrote: > > : > > :> > > :> mmap() and msync(..MS_INVALIDATE..) should work. > > : > > :hmmm that is rather interesting.. > > :I wonder if it would work > > :Maybe a vm guru could confirm this.. (under 4.x) > > : > > > > Huh. If I hadn't looked at

Re: how to flush out cache.?

2004-04-21 Thread Stephan Uphoff
Matthew Dillon wrote: > : > :> > :> mmap() and msync(..MS_INVALIDATE..) should work. > : > :hmmm that is rather interesting.. > :I wonder if it would work > :Maybe a vm guru could confirm this.. (under 4.x) > : > > Huh. If I hadn't looked at the code I would have said that > MS_INVA

Re: how to flush out cache.?

2004-04-21 Thread Matthew Dillon
:Actually what I'm looking for is :"throw away clean data" : :I want to dump the cached version of a file so that I can force a reread :of the disk. MS_INVALIDATE doesn't do that. madvise()'s MADV_FREE does what you want, BUT it does not currently work (at least on 4.x or in DFly

Re: how to flush out cache.?

2004-04-21 Thread Julian Elischer
On Wed, 21 Apr 2004, Matthew Dillon wrote: > : > :> > :> mmap() and msync(..MS_INVALIDATE..) should work. > : > :hmmm that is rather interesting.. > :I wonder if it would work > :Maybe a vm guru could confirm this.. (under 4.x) > : > > Huh. If I hadn't looked at the code I would have

Re: how to flush out cache.?

2004-04-21 Thread Matthew Dillon
: :> :> mmap() and msync(..MS_INVALIDATE..) should work. : :hmmm that is rather interesting.. :I wonder if it would work :Maybe a vm guru could confirm this.. (under 4.x) : Huh. If I hadn't looked at the code I would have said that MS_INVALIDATE doesn't work in FreeBSD, but when I lo

Re: panic: random.ko

2004-04-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2004-04-21 23:54:43 +0100: > Roman Neuhauser writes: > > > unload > > > load /boot/kernel/kernel > > > boot > > > > > > does it for me. > > > > Of course I run unload as the first step. It wrote it unloaded the > > modules, and the started loading them again booting

Re: panic: random.ko

2004-04-21 Thread markm
Roman Neuhauser writes: > > unload > > load /boot/kernel/kernel > > boot > > > > does it for me. > > Of course I run unload as the first step. It wrote it unloaded the > modules, and the started loading them again booting the new kernel. Did you type the exact THREE commands as shown abo

Re: how to flush out cache.?

2004-04-21 Thread Julian Elischer
On Wed, 21 Apr 2004, Stephan Uphoff wrote: > > mmap() and msync(..MS_INVALIDATE..) should work. hmmm that is rather interesting.. I wonder if it would work Maybe a vm guru could confirm this.. (under 4.x) > > Stephan > > > > > Ok so I have an application where I need to > > rere

Re: how to flush out cache.?

2004-04-21 Thread Stephan Uphoff
mmap() and msync(..MS_INVALIDATE..) should work. Stephan > > Ok so I have an application where I need to > reread a file I have just written to ensure that it went to disk > correctly.. > > Other than reading a few GB of data, is there a way to flush > out the cache copy of a file I'v

Re: how to flush out cache.?

2004-04-21 Thread David Malone
On Wed, Apr 21, 2004 at 01:47:43PM -0700, Julian Elischer wrote: > ingenious, but, no we can't do that.. > As I mentionned.. someone suggested using 'dump' > to extract the file from raw disk and checksumming that... :-) If it is SCSI, you could probably put a second controler on the SCSI bus, and

Re: how to flush out cache.?

2004-04-21 Thread Julian Elischer
On Wed, 21 Apr 2004, Garance A Drosihn wrote: > At 12:23 PM -0700 4/21/04, Julian Elischer wrote: > >Ok so I have an application where I need to > >reread a file I have just written to ensure that it went to disk > >correctly.. > > > >Other than reading a few GB of data, is there a way to flush

Re: how to flush out cache.?

2004-04-21 Thread Julian Elischer
On Wed, 21 Apr 2004, Steve Watt wrote: > On Apr 21, 13:28, Julian Elischer wrote: > } Subject: Re: how to flush out cache.? > } > } On Wed, 21 Apr 2004, Steve Watt wrote: > } > } > In article <[EMAIL PROTECTED]> you write: > } > > > } > >Ok so I have an application where I need to > } > >rere

Re: how to flush out cache.?

2004-04-21 Thread Julian Elischer
On Wed, 21 Apr 2004, Steve Watt wrote: > On Apr 21, 13:28, Julian Elischer wrote: > } Subject: Re: how to flush out cache.? > } > } On Wed, 21 Apr 2004, Steve Watt wrote: > } > } > In article <[EMAIL PROTECTED]> you write: > } > > > } > >Ok so I have an application where I need to > } > >rere

Re: how to flush out cache.?

2004-04-21 Thread Garance A Drosihn
At 12:23 PM -0700 4/21/04, Julian Elischer wrote: Ok so I have an application where I need to reread a file I have just written to ensure that it went to disk correctly.. Other than reading a few GB of data, is there a way to flush out the cache copy of a file I've written? possibilities include:

Re: how to flush out cache.?

2004-04-21 Thread Steve Watt
On Apr 21, 13:28, Julian Elischer wrote: } Subject: Re: how to flush out cache.? } } On Wed, 21 Apr 2004, Steve Watt wrote: } } > In article <[EMAIL PROTECTED]> you write: } > > } > >Ok so I have an application where I need to } > >reread a file I have just written to ensure that it went to disk

Re: how to flush out cache.?

2004-04-21 Thread Julian Elischer
On Wed, 21 Apr 2004, Julian Elischer wrote: > > > On Wed, 21 Apr 2004, Steve Watt wrote: > > > In article <[EMAIL PROTECTED]> you write: > > > > > >Ok so I have an application where I need to > > >reread a file I have just written to ensure that it went to disk > > >correctly.. > > > > > >Ot

Re: how to flush out cache.?

2004-04-21 Thread Julian Elischer
On Wed, 21 Apr 2004, Steve Watt wrote: > In article <[EMAIL PROTECTED]> you write: > > > >Ok so I have an application where I need to > >reread a file I have just written to ensure that it went to disk > >correctly.. > > > >Other than reading a few GB of data, is there a way to flush > >out the

Re: how to flush out cache.?

2004-04-21 Thread Steve Watt
In article <[EMAIL PROTECTED]> you write: > >Ok so I have an application where I need to >reread a file I have just written to ensure that it went to disk >correctly.. > >Other than reading a few GB of data, is there a way to flush >out the cache copy of a file I've written? You can flush the fil

how to flush out cache.?

2004-04-21 Thread Julian Elischer
Ok so I have an application where I need to reread a file I have just written to ensure that it went to disk correctly.. Other than reading a few GB of data, is there a way to flush out the cache copy of a file I've written? possibilities include: a file flag saying "don't keep a copy after it

Re: panic: random.ko

2004-04-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2004-04-21 12:03:36 +0100: > Kris Kennaway writes: > > > loader to ignore loader.con) was that "unload" didn't help, it > > > showed the kernel and modules were unloaded, but subsequent > > > > > > load > > > boot > > > > > > or > > > > > > boot >

Re: Help: threading problem in non-threaded applications

2004-04-21 Thread Daniel Eischen
On Wed, 21 Apr 2004, Joe Marcus Clarke wrote: > On Wed, 2004-04-21 at 09:18, Daniel Eischen wrote: > > On Wed, 21 Apr 2004, Joe Marcus Clarke wrote: > > > > > On Tue, 2004-04-20 at 17:08, Daniel Eischen wrote: > > > > On Tue, 20 Apr 2004, Joe Marcus Clarke wrote: > > > > > > > > > I have a probl

Re: Help: threading problem in non-threaded applications

2004-04-21 Thread Joe Marcus Clarke
On Wed, 2004-04-21 at 09:18, Daniel Eischen wrote: > On Wed, 21 Apr 2004, Joe Marcus Clarke wrote: > > > On Tue, 2004-04-20 at 17:08, Daniel Eischen wrote: > > > On Tue, 20 Apr 2004, Joe Marcus Clarke wrote: > > > > > > > I have a problem I'm hoping someone can help me with. GTK+ 2.4 > > > > int

Re: Help: threading problem in non-threaded applications

2004-04-21 Thread Daniel Eischen
On Wed, 21 Apr 2004, Joe Marcus Clarke wrote: > On Tue, 2004-04-20 at 17:08, Daniel Eischen wrote: > > On Tue, 20 Apr 2004, Joe Marcus Clarke wrote: > > > > > I have a problem I'm hoping someone can help me with. GTK+ 2.4 > > > introduced a new file selection GUI which works just fine in threade

Re: [patch] Raw sockets in jails

2004-04-21 Thread Christian S.J. Peron
Poul/group The following patch makes raw sockets comply with prison IP addresses. Some tools such as traceroute(8) may require that the prison IP address be specified on the command line. I.E. traceroute -s Otherwise it might fail. (because of this we may want to get rid of the creat

Re: panic: random.ko

2004-04-21 Thread markm
Kris Kennaway writes: > > loader to ignore loader.con) was that "unload" didn't help, it > > showed the kernel and modules were unloaded, but subsequent > > > > load > > boot > > > > or > > > > boot > > > > loaded the the modules again, and I had to "disable-module

Re: Detecting 'floppy' like umass devices

2004-04-21 Thread Bernd Walter
On Wed, Apr 21, 2004 at 01:29:29PM +0930, Daniel O'Connor wrote: > On Tue, 20 Apr 2004 18:28, Bernd Walter wrote: > > > I am wondering if there is any way of telling if a given umass device is > > > a floppy drive (or wants to look like one) - eg I have a USB FDD which > > > I imagine should fall i

Re: panic: random.ko

2004-04-21 Thread Kris Kennaway
On Wed, Apr 21, 2004 at 10:20:14AM +0200, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2004-04-04 19:02:07 -0700: > > On Mon, Apr 05, 2004 at 02:35:53AM +0200, Roman Neuhauser wrote: > > > Booting a kernel with random compiled in, and load_random=YES in > > > loader.conf causes a panic very simil

Re: panic: random.ko

2004-04-21 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2004-04-04 19:02:07 -0700: > On Mon, Apr 05, 2004 at 02:35:53AM +0200, Roman Neuhauser wrote: > > Booting a kernel with random compiled in, and load_random=YES in > > loader.conf causes a panic very similar to the one described here: > > http://lists.freebsd.org/pipermail/free