Re: mmap() question

2013-10-13 Thread Dmitry Sivachenko
On 12.10.2013, at 18:14, Konstantin Belousov wrote: >> >> First I tried with some swap space configured. The OS started to swap out >> my process after it reached about 20GB which is also not what I expected: >> what is the reason to swap out regions of read-only mmap()ed files? Is it >>

Re: mmap() question

2013-10-12 Thread Dmitry Sivachenko
On 12.10.2013, at 13:59, Konstantin Belousov wrote: > > I was not able to reproduce the situation locally. I even tried to start > a lot of threads accessing the mapped regions, to try to outrun the > pagedaemon. The user threads sleep on the disk read, while pagedaemon > has a lot of time to re

Re: mmap() question

2013-10-11 Thread Dmitry Sivachenko
On 11.10.2013, at 9:17, Konstantin Belousov wrote: > On Wed, Oct 09, 2013 at 03:42:27PM +0400, Dmitry Sivachenko wrote: >> Hello! >> >> I have a program which mmap()s a lot of large files (total size more that >> RAM and I have no swap), but it needs only sma

mmap() question

2013-10-09 Thread Dmitry Sivachenko
Hello! I have a program which mmap()s a lot of large files (total size more that RAM and I have no swap), but it needs only small parts of that files at a time. My understanding is that when using mmap when I access some memory region OS reads the relevant portion of that file from disk and cac

About CPU cores numbering an processor affinity

2013-08-23 Thread Dmitry Sivachenko
Hello! I am using FreeBSD-9-STABLE on the following hardware: FreeBSD/SMP: Multiprocessor System Detected: 24 CPUs FreeBSD/SMP: 2 package(s) x 6 core(s) x 2 SMT threads So I have 2 physical CPUs with 6 core each. # cpuset -g pid -1 mask: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,

Re: /bin/sh question

2004-05-11 Thread Dmitry Sivachenko
On Sun, May 09, 2004 at 09:53:50PM -0400, Martin Cracauer wrote: > Dmitry Sivachenko wrote on Fri, Apr 30, 2004 at 03:28:29PM +0400: > > > > We use recent -STABLE. > > We observed /bin/sh looping forever executing a script. > > We run this script with -T option to sh(

/bin/sh question

2004-04-30 Thread Dmitry Sivachenko
Hello! We use recent -STABLE. We observed /bin/sh looping forever executing a script. We run this script with -T option to sh(1). When sh(1) receives a HUP, we entering our trap handler which spawns child process. When this process exits, sh(1) loops. The backtrace is the following: (gdb) bt #

Re: struct ipc_perm

2003-06-19 Thread Dmitry Sivachenko
On Thu, Jun 19, 2003 at 10:56:41AM +0200, Gary Jennejohn wrote: > > Dmitry Sivachenko writes: > > On Wed, Jun 18, 2003 at 06:08:37PM +0200, Gary Jennejohn wrote: > > > > > > Dmitry Sivachenko writes: > > > > Hello! > > > > > > >

Re: struct ipc_perm

2003-06-18 Thread Dmitry Sivachenko
On Wed, Jun 18, 2003 at 06:08:37PM +0200, Gary Jennejohn wrote: > > Dmitry Sivachenko writes: > > Hello! > > > > Is there any reason why struct ipc_perm is not protected by #ifdef _KERNEL > > in ipc.h? Is it supposed to be used from userland? > > > >

struct ipc_perm

2003-06-18 Thread Dmitry Sivachenko
Hello! Is there any reason why struct ipc_perm is not protected by #ifdef _KERNEL in ipc.h? Is it supposed to be used from userland? Thanks! ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, se

Re: Repeated similar panics on -STABLE

2003-04-02 Thread Dmitry Sivachenko
On Wed, Apr 02, 2003 at 05:44:28PM +0400, Dmitry Sivachenko wrote: > Hello! > > Fatal trap 12: page fault while in kernel mode > mp_lock = 0102; cpuid = 1; lapic.id = > fault virtual address = 0x5cdd8000 > fault code = supervisor read, page not pre

Repeated similar panics on -STABLE

2003-04-02 Thread Dmitry Sivachenko
Hello! We have three machines under relatively high load. They are running -STABLE on the same hardware with 2 processors (and SMP kernel). Periodically (approximately once a week) they panic with similar symptoms: # gdb -k kernel.debug vmcore.2 GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Softwar

ffsfsn

2001-04-06 Thread Dmitry Sivachenko
Hello! What does 'ffsfsn' state (shown in top(1) output) mean? I am inserting records in Postgres, and the process is going very slowly probably due to postgres is in this state... Thanks, --dima To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of th

Problem with K6-2/500 CPU

2001-03-10 Thread Dmitry Sivachenko
Hello! I use recent FreeBSD-4-STABLE. When I changed my processor from Intel Pentium 200 MMX to AMD K6-2 500, I can neither recompile operating system nor compile other programs. >From kernel compilation: cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototyp