Skip to contentSkip to conversation

Add write throttling to NFS client

PATCH Trond Myklebust 1 participant 2 messages Mar 3, 2004 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

P=E5 on , 03/03/2004 klokka 12:58, skreiv Shantanu Goel:

Quoted 3 lines

Attached is a patch that eliminates nfs_strategy() and just relies on=20 pdflush to regulate dirty pages. It applies on top of the rpc throttle=20 patch I emailed earlier.

See
http://www.fys.uio.no/~trondmy/src/Linux-2.6.x/2.6.3/linux-2.6.3-02-strateg=
y.dif

which already does this...

Cheers,
Trond

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#4 lore raw
In reply to a message not in the archive

P=E5 on , 03/03/2004 klokka 14:09, skreiv Shantanu Goel:

Quoted 1 line

Will do. Is the rpc throttle patch acceptable now for inclusion?

I have a couple of fixups to do in order to be able to append it to the NFS4_ALL patch, but otherwise it looks OK.

I haven't tested it yet, though...

A couple of minor gripes (which I'm in the process of fixing up)

- nfs_writepage_async() really doesn't need a "how" parameter. It only allocates an nfs_page().
=20
- Several of those #defines really ought to be inline functions.
=20
- Let's get rid of RPC_WAITQ_MARK_PRIORITY(), and instead make an rpc_init_priority_waitq(). Changing the value of queue->levels at any time after initialization looks really dangerous.
=20
- Your use of task->tk_flags inside __rpc_remove_wait_queue_priority() looks unsafe. Recall that soft irqs may call that function, and if they do so while someone else is touching that variable, then information may get clobbered.
In addition, that whole flag seems redundant. Just checking for list_empty(&task->tk_links) should suffice AFAICS...
=20
- I really don't like rpc_cookie in the struct rpc_message. It has nothing to do with the actual RPC payload at all. Let's leave it in the rpc_task.
=20
- A couple of list_del()+list_add*() combinations looked like candidates for list_move*() conversion.
=20
- We really need to do something about "task_for_first()". I realize that isn't your fault (Neil introduced it IIRC) but it is very confusing, not to mention ugly, to be hiding an if statement inside a macro like that.
=20
- I'm a bit worried about the RPC_PRIORITY_HIGH tasks hogging all the queues. I suggest we just make the high priority queue equivalent to the 2 other queues, but that we set queue->count to 8.
If that doesn't work, we can go back to making it always be served.

Cheers,
Trond

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs