Re: Increasing MAXPHYS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Dillon
Date: Saturday, March 20, 2010 - 10:53 am

:All above I have successfully tested last months with MAXPHYS of 1MB on
:i386 and amd64 platforms.
:
:So my questions are:
:- does somebody know any issues denying increasing MAXPHYS in HEAD?
:- are there any specific opinions about value? 512K, 1MB, MD?
:
:-- 
:Alexander Motin

    (nswbuf * MAXPHYS) of KVM is reserved for pbufs, so on i386 you
    might hit up against KVM exhaustion issues in unrelated subsystems.
    nswbuf typically maxes out at around 256.  For i386 1MB is probably
    too large (256M of reserved KVM is a lot for i386).  On amd64 there
    shouldn't be a problem.

    Diminishing returns get hit pretty quickly with larger MAXPHYS values.
    As long as the I/O can be pipelined the reduced transaction rate
    becomes less interesting when the transaction rate is less than a
    certain level.  Off the cuff I'd say 2000 tps is a good basis for
    considering whether it is an issue or not.  256K is actually quite
    a reasonable value.  Even 128K is reasonable.

    Nearly all the issues I've come up against in the last few years have
    been related more to pipeline algorithms breaking down and less with
    I/O size.  The cluster_read() code is especially vulnerable to
    algorithmic breakdowns when fast media (such as a SSD) is involved.
    e.g.  I/Os queued from the previous cluster op can create stall
    conditions in subsequent cluster ops before they can issue new I/Os
    to keep the pipeline hot.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Increasing MAXPHYS, Alexander Motin, (Sat Mar 20, 8:20 am)
Re: Increasing MAXPHYS, Matthew Dillon, (Sat Mar 20, 10:53 am)
Re: Increasing MAXPHYS, C. P. Ghost, (Sat Mar 20, 11:13 am)
Re: Increasing MAXPHYS, Scott Long, (Sat Mar 20, 11:17 am)
Re: Increasing MAXPHYS, Matthew Dillon, (Sat Mar 20, 11:22 am)
Re: Increasing MAXPHYS, Alexander Motin, (Sat Mar 20, 12:26 pm)
Re: Increasing MAXPHYS, Alan Cox, (Sat Mar 20, 12:38 pm)
Re: Increasing MAXPHYS, Julian Elischer, (Sat Mar 20, 1:41 pm)
Re: Increasing MAXPHYS, Julian Elischer, (Sat Mar 20, 2:30 pm)
Re: Increasing MAXPHYS, Alexander Motin, (Sun Mar 21, 7:04 am)
Re: Increasing MAXPHYS, Julian Elischer, (Sun Mar 21, 8:46 am)
Re: Increasing MAXPHYS, Ulrich =?utf-8?B?U3D ..., (Sun Mar 21, 9:30 am)
Re: Increasing MAXPHYS, Scott Long, (Sun Mar 21, 9:32 am)
Re: Increasing MAXPHYS, Scott Long, (Sun Mar 21, 9:39 am)
Re: Increasing MAXPHYS, Ulrich =?utf-8?B?U3D ..., (Sun Mar 21, 9:53 am)
Re: Increasing MAXPHYS, Alexander Motin, (Sun Mar 21, 10:03 am)
Re: Increasing MAXPHYS, Scott Long, (Sun Mar 21, 10:10 am)
Re: Increasing MAXPHYS, jhell, (Sun Mar 21, 5:54 pm)
Re: Increasing MAXPHYS, jhell, (Sun Mar 21, 7:00 pm)
Re: Increasing MAXPHYS, Alexander Motin, (Sun Mar 21, 10:53 pm)
Re: Increasing MAXPHYS, Gary Jennejohn, (Mon Mar 22, 4:40 am)
Re: Increasing MAXPHYS, John Baldwin, (Mon Mar 22, 5:39 am)
Re: Increasing MAXPHYS, Alexander Leidinger, (Mon Mar 22, 5:49 am)
Re: Increasing MAXPHYS, jhell, (Mon Mar 22, 8:11 am)
Re: Increasing MAXPHYS, Alexander Sack, (Mon Mar 22, 8:52 am)
Re: Increasing MAXPHYS, Scott Long, (Mon Mar 22, 9:27 am)