mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Problem to recognize that the file system is full
       [not found] <89a10cbc0709040951u1786e7e3g76708bfcb7117f44@mail.gmail.com>
@ 2007-09-04 16:53 ` Guilherme Vilela
  2007-09-06 12:48   ` Jan Engelhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Guilherme Vilela @ 2007-09-04 16:53 UTC (permalink / raw)
  To: linux-kernel

Hi,
I'm tryng to mount a nfs file system with the option async and run a
program that writes to the file system. The problem is that the
program keep writing even when the file system is full. It appears
that the nfs dont see that the file system is full and keeps writing
to the cache. This program does'nt occur when mounting with the sync
option or with async and noac option, but the performance get very
poor and that is important to my application. The problem doesnt occur
too with the local file system. I'm running linux centos 5.0.

Below is my test program.
Any idea how to resolve this problem?

Thanks,
Guilherme


//io-stress.cpp

#include <iostream>
#include <fstream>
#include <string>

using namespace std;

int main()
{
        int i = 0;
        string roller( "|/-\\" );
        string sample( "*", 1024 );
        ofstream ofs( "io-stress.txt" );
        ofs.exceptions( ios::failbit | ios::badbit );

        while ( ofs )
        {
                ofs << sample << endl << flush;
                ofs.flush();
                if ( i == 3 )
                        i = 0;
                cout << "\b" << roller[i++];
        }
        ofs.close();
        return 0;
}

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

* Re: Problem to recognize that the file system is full
  2007-09-04 16:53 ` Problem to recognize that the file system is full Guilherme Vilela
@ 2007-09-06 12:48   ` Jan Engelhardt
  2007-09-06 20:58     ` David Newall
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2007-09-06 12:48 UTC (permalink / raw)
  To: Guilherme Vilela; +Cc: linux-kernel


On Sep 4 2007 13:53, Guilherme Vilela wrote:
>Hi,
>I'm tryng to mount a nfs file system with the option async and run a
>program that writes to the file system. The problem is that the
>program keep writing even when the file system is full.

man 5 exports

   async  This option allows the NFS server to violate  the  NFS  protocol
          and  reply  to  requests before any changes made by that request
          have been committed to stable storage (e.g. disc drive).

>It appears
>that the nfs dont see that the file system is full and keeps writing
>to the cache. This program does'nt occur when mounting with the sync
>option or with async and noac option, but the performance get very
>poor and that is important to my application. The problem doesnt occur
>too with the local file system. I'm running linux centos 5.0.

About ac/localhost, I am not really sure what makes it work.


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

* Re: Problem to recognize that the file system is full
  2007-09-06 12:48   ` Jan Engelhardt
@ 2007-09-06 20:58     ` David Newall
  0 siblings, 0 replies; 3+ messages in thread
From: David Newall @ 2007-09-06 20:58 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Guilherme Vilela, linux-kernel

Jan Engelhardt wrote:
> On Sep 4 2007 13:53, Guilherme Vilela wrote:
>   
>> I'm tryng to mount a nfs file system with the option async and run a
>> program that writes to the file system. The problem is that the
>> program keep writing even when the file system is full.
>>     
>
> man 5 exports
>
>    async  This option allows the NFS server to violate  the  NFS  protocol
>           and  reply  to  requests before any changes made by that request
>           have been committed to stable storage (e.g. disc drive).
>   

(That means it's a feature.)

>> This program does'nt occur when mounting with the sync
>> option or with async and noac option, but the performance get very
>> poor and that is important to my application. The problem doesnt occur
>> too with the local file system. I'm running linux centos 5.0.
>>     
>
> About ac/localhost, I am not really sure what makes it work.
man 5 nfs

   noac Disable attribute caching, and force synchronous writes.  This
        extracts a server performance penalty but it allows two different
        NFS clients to get reasonable good results when both clients are
        actively writing to common filesystem on the server.


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

end of thread, other threads:[~2007-09-06 20:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <89a10cbc0709040951u1786e7e3g76708bfcb7117f44@mail.gmail.com>
2007-09-04 16:53 ` Problem to recognize that the file system is full Guilherme Vilela
2007-09-06 12:48   ` Jan Engelhardt
2007-09-06 20:58     ` David Newall

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

all inboxes | Powered by JetHome®