From: "Guilherme Vilela" <vilela.list@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Problem to recognize that the file system is full
Date: Tue, 4 Sep 2007 13:53:03 -0300 [thread overview]
Message-ID: <89a10cbc0709040953i58f64a9cx957d69dd35519083@mail.gmail.com> (raw)
In-Reply-To: <89a10cbc0709040951u1786e7e3g76708bfcb7117f44@mail.gmail.com>
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;
}
next parent reply other threads:[~2007-09-04 16:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <89a10cbc0709040951u1786e7e3g76708bfcb7117f44@mail.gmail.com>
2007-09-04 16:53 ` Guilherme Vilela [this message]
2007-09-06 12:48 ` Jan Engelhardt
2007-09-06 20:58 ` David Newall
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=89a10cbc0709040953i58f64a9cx957d69dd35519083@mail.gmail.com \
--to=vilela.list@gmail.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®