login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
20
Re: [patch] pipe: add support for shrinking and growing pipes
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Michael Kerrisk
Subject:
Re: [patch] pipe: add support for shrinking and growing pipes
Date: Saturday, June 19, 2010 - 10:37 pm
On Sat, Jun 19, 2010 at 8:13 PM, Jens Axboe <jaxboe@fusionio.com> wrote:
quoted text
> On 19/06/10 07.45, Michael Kerrisk wrote: >> Hello Jens, >> >> I've tested this F_SETPIPE_SZ code as it appears in 2.6.35-rc3, and >> things seem to work as advertised, if the text below is the correct >> advertisement. Could you please review the following man-pages text, >> and let me know if it's okay. >> >> fcntl.2: >> F_SETPIPE_SZ (long; since Linux 2.6.35) >> Change the capacity of the pipe referred to by >> fd to be at least arg bytes. An unprivileged >> process can adjust the pipe capacity to any >> value between the system page size and the limit >> defined in /proc/sys/fs/pipe-size-max (see >> proc(5)). Attempts to set the pipe capacity >> below the page size are silently rounded up to >> the page size. Attempts by an unprivileged pro- >> cess to set the pipe capacity above the limit in >> /proc/sys/fs/pipe-size-max yield the error >> EPERM; a privileged process (CAP_SYS_RESOURCE) >> can override the limit. When allocating the >> buffer for the pipe, the kernel may use a capac- >> ity larger than arg, if that is convenient for >> the implementation. The F_GETPIPE_SZ operation >> returns the actual size used. Attempting to set >> the pipe capacity smaller than the amount of >> buffer space currently used to store data pro- >> duces the error EBUSY. >> >> F_GETPIPE_SZ (void; since Linux 2.6.35) >> Return (as the function result) the capacity of >> the pipe referred to by fd. >> >> And in proc.5: >> /proc/sys/fs/pipe-max-size (since Linux 2.6.35) >> The value in this file defines an upper limit >> for raising the capacity of a pipe using the >> fcntl(2) F_SETPIPE_SZ operation. This limit >> applies only to unprivileged processes. The >> default value for this file is 1,048,576. The >> value assigned to this file may be rounded >> upward, to reflect the value actually employed >> for a convenient implementation. To determine >> the rounded-up value, display the contents of >> this file after assigning a value to it. The >> minimum value that can be assigned to this file >> is the system page size. > > Looks good to me.
Thanks! Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer;
http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"
http://blog.man7.org/
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[patch] pipe: add support for shrinking and growing pipes
, Miklos Szeredi
, (Wed May 19, 9:45 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Linus Torvalds
, (Wed May 19, 9:49 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Wed May 19, 11:05 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Miklos Szeredi
, (Thu May 20, 1:33 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Thu May 20, 1:37 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Andi Kleen
, (Thu May 20, 5:52 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Linus Torvalds
, (Thu May 20, 10:42 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Thu May 20, 10:48 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Andrew Morton
, (Sat May 22, 7:38 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Sat May 22, 10:30 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Sat May 22, 10:52 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Sun May 23, 12:09 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Sun May 23, 2:24 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Sun May 23, 10:47 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, OGAWA Hirofumi
, (Sun May 23, 6:43 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Sun May 23, 9:43 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Mon May 24, 12:04 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Mon May 24, 12:05 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Mon May 24, 12:27 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Mon May 24, 12:28 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, OGAWA Hirofumi
, (Mon May 24, 12:46 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, OGAWA Hirofumi
, (Mon May 24, 12:49 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Brian Bloniarz
, (Mon May 24, 7:51 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Mon May 24, 8:43 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Mon May 24, 10:15 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Mon May 24, 10:35 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Mon May 24, 10:52 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Mon May 24, 10:56 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, OGAWA Hirofumi
, (Mon May 24, 11:12 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Mon May 24, 11:16 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Mon May 24, 9:01 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Wed May 26, 11:49 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Tue Jun 1, 12:45 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Tue Jun 1, 12:48 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Linus Torvalds
, (Tue Jun 1, 8:22 am)
RE: [patch] pipe: add support for shrinking and growing pipes
, Loke, Chetan
, (Tue Jun 1, 9:36 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Wed Jun 2, 12:25 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Wed Jun 2, 11:10 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Wed Jun 2, 11:46 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Thu Jun 3, 12:01 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Thu Jun 3, 12:05 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Thu Jun 3, 12:48 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Thu Jun 3, 12:58 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Thu Jun 3, 1:29 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Thu Jun 3, 1:53 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Thu Jun 3, 4:11 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Thu Jun 3, 4:12 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Miklos Szeredi
, (Thu Jun 3, 4:32 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Thu Jun 3, 4:37 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Miklos Szeredi
, (Thu Jun 3, 5:45 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Thu Jun 3, 5:50 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Miklos Szeredi
, (Thu Jun 3, 9:06 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Fri Jun 18, 10:45 pm)
Re: [patch] pipe: add support for shrinking and growing pipes
, Jens Axboe
, (Sat Jun 19, 11:13 am)
Re: [patch] pipe: add support for shrinking and growing pipes
, Michael Kerrisk
, (Sat Jun 19, 10:37 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate