newfs -r 2

2009-10-09 Thread Igor Sysoev
reservation will allow to add gjournal to the filesystem later. BTW, could anyone tell how to learn the last sector that filesystem may really use ? -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-hackers@freebsd.org mailing list http

Re: fcntl(F_RDAHEAD)

2009-09-22 Thread Igor Sysoev
On Fri, Sep 18, 2009 at 10:40:27AM +0300, Kostik Belousov wrote: > On Thu, Sep 17, 2009 at 03:26:41PM -0700, Xin LI wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Hi, Igor, > > > > Igor Sysoev wrote: > > > Hi, > >

Re: fcntl(F_RDAHEAD)

2009-09-22 Thread Igor Sysoev
fcntl(2). */ #if __BSD_VISIBLE /* * Set by shm_open(3) to get automatic MAP_ASYNC behavior * for POSIX shared memory objects (which are otherwise * implemented as plain files). */ #define FPOSIXSHM O_NOFOLLOW #endif -- Igor Sysoev http://sysoev.ru/en/ _

Re: fcntl(F_RDAHEAD)

2009-09-22 Thread Igor Sysoev
On Tue, Sep 22, 2009 at 11:53:46AM +0300, Kostik Belousov wrote: > On Tue, Sep 22, 2009 at 11:28:48AM +0400, Igor Sysoev wrote: > > On Mon, Sep 21, 2009 at 02:29:09PM +0300, Kostik Belousov wrote: > > > > > On Mon, Sep 21, 2009 at 03:12:45PM +0400, Igor Sysoev wrot

Re: fcntl(F_RDAHEAD)

2009-09-22 Thread Igor Sysoev
On Mon, Sep 21, 2009 at 02:29:09PM +0300, Kostik Belousov wrote: > On Mon, Sep 21, 2009 at 03:12:45PM +0400, Igor Sysoev wrote: > > > What I dislike about the patch is the new kernel-private flag that is > > > eaten from the open(2) flags namespace. We do already have FHASL

Re: fcntl(F_RDAHEAD)

2009-09-21 Thread Igor Sysoev
On Fri, Sep 18, 2009 at 10:40:27AM +0300, Kostik Belousov wrote: > On Thu, Sep 17, 2009 at 03:26:41PM -0700, Xin LI wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Hi, Igor, > > > > Igor Sysoev wrote: > > > Hi, > >

Re: fcntl(F_RDAHEAD)

2009-09-17 Thread Igor Sysoev
case F_RDAHEAD: arg = arg ? 128 * 1024: 0; /* FALLTHROUGH F_READAHEAD */ case F_READAHEAD: > -Alfred > > * Xin LI [090917 15:27] wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Hi, Igor, > > > > Ig

fcntl(F_RDAHEAD)

2009-09-17 Thread Igor Sysoev
SD 7.2 and was tested on FreeBSD 7.2-STABLE only. -- Igor Sysoev http://sysoev.ru/en/ --- sys/sys/fcntl.h 2009-06-02 19:05:17.0 +0400 +++ sys/sys/fcntl.h 2009-09-12 20:29:34.0 +0400 @@ -118,6 +118,10 @@ #if __BSD_VISIBLE /* Attempt to bypass buffer cache */ #defin

Re: opendir()/closedir()

2008-09-05 Thread Igor Sysoev
On Fri, Sep 05, 2008 at 10:48:45PM +0300, Kostik Belousov wrote: > On Fri, Sep 05, 2008 at 10:40:32PM +0400, Igor Sysoev wrote: > > Looking at opendir()/readdir()/closedir() sequence via ktrace, > > I've seen supposedly useless lseek() syscall just before close(). > >

opendir()/closedir()

2008-09-05 Thread Igor Sysoev
ening special file may be harmful ? -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: mmap() sendfile()

2006-01-04 Thread Igor Sysoev
cient than mbufs because sfbufs use KVA only while mbuf clusters use both KVA and physical memory. Igor Sysoev http://sysoev.ru/en/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, sen

Re: kqueue/kevent and directories (Was: Equivalent of POLLERR for kqueue.)

2006-01-04 Thread Igor Sysoev
r the late response, but kqueue delivers error code to process in fflags (at least for sockets), so application does not need to call unnecessary syscall to learn error code. Igor Sysoev http://sysoev.ru/en/ ___ freebsd-hackers@freebsd.org mailing

Re: KQueue and Threads?

2004-07-19 Thread Igor Sysoev
ure too. In Linux 2.4 clone()ed threads can not add signal notification for another thread, because they have the different pids and a kernel returns EPERM for fcntl(F_SETOWN). Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.f

panic caused by EVFILT_SIGNAL detaching in rfork()ed thread

2004-07-05 Thread Igor Sysoev
e filter to kqueue. If one thread added the filter then another thread would not get this filter events. It's probabaly caused by the implementation EVFILT_SIGNAL filter - as EVFILT_PROC it uses p->p_klist. I think it should be documented in man page. Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Update: Debox sendfile modifications

2003-11-10 Thread Igor Sysoev
On Sun, 9 Nov 2003, John-Mark Gurney wrote: > Igor Sysoev wrote this message on Sun, Nov 09, 2003 at 15:16 +0300: > > > If you made this a fd transparent operation then I would agree with > > > it. > > > > The current sendfile() implementation works with soc

Re: Update: Debox sendfile modifications

2003-11-09 Thread Igor Sysoev
On Sat, 8 Nov 2003, John-Mark Gurney wrote: > Igor Sysoev wrote this message on Wed, Nov 05, 2003 at 12:31 +0300: > > I think it can done in the following way - a socket should have flag > > that says that sendfile() had started the reading a page. > > layer violation...

Re: Update: Debox sendfile modifications

2003-11-06 Thread Igor Sysoev
On Wed, 5 Nov 2003, Igor Sysoev wrote: > On Wed, 5 Nov 2003, Mike Silbersack wrote: > > > On Wed, 5 Nov 2003, Vivek Pai wrote: > > > > > If you were to have sendfile issue the disk reads, how would you signal > > > completion? I guess one approach is

Re: Update: Debox sendfile modifications

2003-11-05 Thread Igor Sysoev
On Wed, 5 Nov 2003, Robert Watson wrote: > On Wed, 5 Nov 2003, Igor Sysoev wrote: > > > On Wed, 5 Nov 2003, Robert Watson wrote: > > > > > On Wed, 5 Nov 2003, Igor Sysoev wrote: > > > > > > > As to worker kthreads I think it's better to

Re: Update: Debox sendfile modifications

2003-11-05 Thread Igor Sysoev
On Wed, 5 Nov 2003, Robert Watson wrote: > On Wed, 5 Nov 2003, Igor Sysoev wrote: > > > As to worker kthreads I think it's better to queue aio operation as it > > was made in src/sys/kern/vfs_aio.c:aio_qphysio(). > > One of the things that worries me about the

Re: Update: Debox sendfile modifications

2003-11-05 Thread Igor Sysoev
transparent to the existent user applications that uses select()/etc. As to worker kthreads I think it's better to queue aio operation as it was made in src/sys/kern/vfs_aio.c:aio_qphysio(). Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED]

Re: 4.6.2-p23 and [tcp bad cksum]

2003-10-03 Thread Igor Sysoev
; working, as it scrolled by I noticed a reduction in the number of > errors. I'm not sure but I think you had built your kernels with -O2 and encountered a seldom bug that was fixed in 4.6-STABLE: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=727930+0+/usr/local/

Re: shared mem and panics when out of PV Entries

2003-03-27 Thread Igor Sysoev
I know it isn't the most efficient > way to use Apache, but nobody has any complaints about > performance at this point. You have too much overhead per connection and if the worload would grow you will have perfomance problems. Igor Sysoev http://sysoev.ru/en/ _

Re: shared mem and panics when out of PV Entries

2003-03-26 Thread Igor Sysoev
guess I could > consider the issue resolved. > > What other things in Apache (besides memory sharing via PHP > and/or mod_perl) could generate PV Entry usage on a massive > scale? The file mmap()s. But they should not descreased because they alwayes shared as compared with copy-on-write fork()ed pages. Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: shared mem and panics when out of PV Entries

2003-03-25 Thread Igor Sysoev
On Mon, 24 Mar 2003, Andrew Kinney wrote: > On 24 Mar 2003, at 16:02, Igor Sysoev wrote: > > > How many Apache processes do you have and what's their size ? > > It varies between 150 and 256 Apache processes. Our MaxClients > is set to 256, which seems to work we

Re: shared mem and panics when out of PV Entries

2003-03-24 Thread Igor Sysoev
gt; gotchas and caveats should I watch out for in taking this approach? > Any recommendations on which one to tweak first? kern.ipc.shm_use_phys, kern.ipc.shmmax, etc are for System V shared memory. They have no relation to the memory that shared between processes via fork(). Igor Sysoev http://sysoev.ru/en/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: first parameter to select

2003-03-13 Thread Igor Sysoev
ock uses the integer array for fd_set instead of the bit array as Unices do. Winsock socket's numbers are big enough, for example I saw on NT as first created socket has number 96 and second has 42. Bitmask is not effective for such numbers. Igor Sysoev http://sysoev.ru/en/ To Unsubsc