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 Konstantin Belousov
On Sat, Oct 12, 2013 at 04:04:31PM +0400, Dmitry Sivachenko wrote: > > 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

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-12 Thread Konstantin Belousov
On Fri, Oct 11, 2013 at 09:57:24AM +0400, Dmitry Sivachenko wrote: > > 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 > >

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 small parts of that files at a >> tim

Re: mmap() question

2013-10-10 Thread Konstantin Belousov
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 small parts of that files at a time. > > My understanding is that when using mmap when I access s

Re: mmap() question

2013-10-09 Thread RW
On Wed, 9 Oct 2013 15:42:27 +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 small parts of that > files at a time. > > My understanding is that when using mmap when I access some me

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

Re: FreeBSD SNMP OID Question

2013-09-19 Thread Dan Nelson
er, so it's reporting the total number of pageins since > > boot (or since snmp started, depending on the particular value you're > > fetching). Cacti should be able to poll that OID and graph the > > difference over time to show pageins/sec. > > I guess to better

Re: FreeBSD SNMP OID Question

2013-09-18 Thread Mark Saad
he particular value you're fetching). > Cacti should be able to poll that OID and graph the difference over time to > show pageins/sec. > > > -- > Dan Nelson > dnel...@allantgroup.com > Dan I guess to better refine the question , what is raw swap vs t

FreeBSD SNMP OID Question

2013-09-17 Thread Mark Saad
All Can someone shed some light on a OID mystery I have. I am using cacti to trend some snmp data off a bunch of FreeBSD servers. I noticed someone added a graph to a cluster for UCDavis - ssRawSwapIn / UCDavis - ssRawSwapOut . The OIDs are .1.3.6.1.4.1.2021.11.62 / .1.3.6.1.4.1.2021.11.63 The

Re: FreeBSD SNMP OID Question

2013-09-17 Thread Dan Nelson
In the last episode (Sep 17), Mark Saad said: > Can someone shed some light on a OID mystery I have. I am using cacti > to trend some snmp data off a bunch of FreeBSD servers. > > I noticed someone added a graph to a cluster for UCDavis - ssRawSwapIn / > UCDavis - ssRawSwapOut . The OIDs are .1

Re: hw.physmem/hw.realmem question

2013-07-10 Thread Sergey Kandaurov
On 3 July 2013 01:45, Wojciech Puchar wrote: >> AMD Features2=0x1 >> TSC: P-state invariant, performance statistics >> real memory = 34359738368 (32768 MB) >> avail memory = 32191340544 (30700 MB) > > > 2GB memory "disappears" too even when you don&

Re: hw.physmem/hw.realmem question

2013-07-02 Thread Daniel Braniss
Thanks Chris! It will take me some time do fully digets all this!, but at least the picture is less murky. danny > >for example, this host has has 32G of physical memory ... > >[snip - dmesg:] > >real memory = 34359738368 (32768 MB) > >avail memory = 32191340544 (30700 MB) > >[snip] > >an

Re: hw.physmem/hw.realmem question

2013-07-02 Thread Wojciech Puchar
AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 34359738368 (32768 MB) avail memory = 32191340544 (30700 MB) 2GB memory "disappears" too even when you don't set anything. i asked such a question for other machine some time ago without much ans

Re: hw.physmem/hw.realmem question

2013-07-02 Thread Chris Torek
>for example, this host has has 32G of physical memory ... >[snip - dmesg:] >real memory = 34359738368 (32768 MB) >avail memory = 32191340544 (30700 MB) >[snip] >and from sysctl: >hw.physmem: 34284916736 >hw.usermem: 32964923392 >hw.realmem: 36507222016 > >after setting > hw.physmem=16G > >f

hw.physmem/hw.realmem question

2013-07-02 Thread Daniel Braniss
Hi, to run some tests, I reduced the physical memory by setting hw.physmem, which got me to do some comparisons, and the more I looked around the more confused I got. for example, this host has has 32G of physical memory from dmesg: Copyright (c) 1992-2013 The FreeBSD Project. Copyright (c) 1979,

Re: another question

2013-07-01 Thread mdf
On Mon, Jul 1, 2013 at 5:42 PM, David Sanford wrote: > Hi, > > Thanks for your responses to my first question. They were very helpful. > > In looking at the code, I ran across the functions setprogname and > getprogname. According to the man page: > In FreeBSD, the name of

another question

2013-07-01 Thread David Sanford
Hi, Thanks for your responses to my first question. They were very helpful. In looking at the code, I ran across the functions setprogname and getprogname. According to the man page: In FreeBSD, the name of the program is set by the start-up code that is run before *main*(); thus, running

Re: question in sosend_generic()

2013-06-08 Thread Robert Watson
e specifics are protocol-dependent. In TCP, socket buffer append occurs synchronously in the same thread as part of the pru_send() downcall from the socket layer. When data leaves the send socket buffer is quite a different question. For TCP, data may be sent immediately if there various

question in sosend_generic()

2013-06-07 Thread vasanth rao naik sabavat
Hi, When sending data out of the socket I don't see in the code where the sb_cc is incremented. Is the socket send performed in the same thread of execution or the data is copied on to the socket send buffer and a different thread then sends the data out of the socket? Because, I see a call to s

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
works fine after your advice. thank you very much. FEATURE(`access_db') FEATURE(`blacklist_recipients') On Fri, 24 May 2013, Claus Assmann wrote: On Fri, May 24, 2013, Trond Endrest?l wrote: [freebsd-hackers doesn't seem like the appropriate list...] FEATURE(access_db, `hash -o -T /etc/mai

Re: stupid question about sendmail

2013-05-24 Thread Claus Assmann
On Fri, May 24, 2013, Trond Endrest?l wrote: > On Fri, 24 May 2013 08:34-0700, Claus Assmann wrote: > > > > FEATURE(access_db, `hash -o -T /etc/mail/access') > > Do NOT use -o. Moreover, do not specify arguments that are default. > Then I guess the defaults in freebsd.mc should be changed as wel

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 08:34-0700, Claus Assmann wrote: > On Fri, May 24, 2013, Trond Endrestøl wrote: > > [freebsd-hackers doesn't seem like the appropriate list...] > > > > FEATURE(access_db, `hash -o -T /etc/mail/access') > > Do NOT use -o. Moreover, do not specify arguments that are default. >

Re: stupid question about sendmail

2013-05-24 Thread Claus Assmann
On Fri, May 24, 2013, Trond Endrest?l wrote: [freebsd-hackers doesn't seem like the appropriate list...] > > FEATURE(access_db, `hash -o -T /etc/mail/access') Do NOT use -o. Moreover, do not specify arguments that are default. FEATURE(`access_db') is the best choice. > One final(?) note: You mi

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 12:45+0200, Trond Endrestøl wrote: > On Fri, 24 May 2013 12:03+0200, Wojciech Puchar wrote: > > > > 1. Edit the /etc/mail/access file. > > > > > > 2. Insert a line like this one: > > > > > > To:mail...@some.domain.tld REJECT > > > > tried too. > > > > doesn't work. > > Ma

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 12:03+0200, Wojciech Puchar wrote: > > 1. Edit the /etc/mail/access file. > > > > 2. Insert a line like this one: > > > > To:mail...@some.domain.tld REJECT > > tried too. > > doesn't work. Make sure you edit the /etc/mail/access file, not the /etc/mail/access.db file. Th

Re: stupid question about sendmail

2013-05-24 Thread Chris Rees
On 24 May 2013 11:05, "Wojciech Puchar" wrote: >>> >>> >>> http://www.sendmail.com/sm/open_source/docs/m4/features.html >>> >>> Maybe a line like this one will help you achieve your goal: >>> >>> j...@bar.com error:5.7.0:550 Address invalid >> >> >> I was wrong again, sorry, but I believe I go

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
http://www.sendmail.com/sm/open_source/docs/m4/features.html Maybe a line like this one will help you achieve your goal: j...@bar.comerror:5.7.0:550 Address invalid I was wrong again, sorry, but I believe I got it right this time: 1. Edit the /etc/mail/access file. 2. Insert a line like

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
all i want is when someone send a mail from my server to x...@y.pl (which is someone else domain) it will not get there and be blocked or redirected My bad, take a look at the /etc/mail/genericstable file: http://www.sendmail.com/sm/open_source/docs/m4/features.html Maybe a line like this one

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 10:19+0200, Trond Endrestøl wrote: > My bad, take a look at the /etc/mail/genericstable file: > > http://www.sendmail.com/sm/open_source/docs/m4/features.html > > Maybe a line like this one will help you achieve your goal: > > j...@bar.com error:5.7.0:550 Address invalid I

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 09:55+0200, Wojciech Puchar wrote: > > > > > > To:x...@y.pl REJECT > > > > > > doesn't work > > > > > > any idea. thank you > > > > Don't use /etc/mail/access, use /etc/mail/aliases. > > > > E.g.: > > > > x: /dev/null > > x is NOT on my server. it will not work. > > al

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
To:x...@y.pl REJECT doesn't work any idea. thank you Don't use /etc/mail/access, use /etc/mail/aliases. E.g.: x: /dev/null x is NOT on my server. it will not work. all i want is when someone send a mail from my server to x...@y.pl (which is someone else domain) it will not get ther

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 09:33+0200, Wojciech Puchar wrote: > how to redirect recipient address. i mean - if someone try to send to > x...@y.pl > from serwer then it should be redirected to local account, while the rest of > mails to domain @y.pl should get out normally. > > alternatively outgoing ma

Re: stupid question about sendmail

2013-05-24 Thread Chris Rees
On 24 May 2013 08:34, "Wojciech Puchar" wrote: > > how to redirect recipient address. i mean - if someone try to send to x...@y.pl from serwer then it should be redirected to local account, while the rest of mails to domain @y.pl should get out normally. > > alternatively outgoing mail to x...@y.p

stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
how to redirect recipient address. i mean - if someone try to send to x...@y.pl from serwer then it should be redirected to local account, while the rest of mails to domain @y.pl should get out normally. alternatively outgoing mail to x...@y.pl should be rejected. tried access.db - To:x...@y

Question on timecounter hardware / What cpu flag is constant_tsc

2013-02-21 Thread Mark Saad
All I am looking into an issue with timecounter hardware on a number of HP DL165 G7's They all run FreeBSD 9.1-RELEASE and all have the same CPU and firmware. However they report strange results when you probe kern.timecounter.choice and kern.timecounter.hardware Take this example ssh root@ss

Re: Stupid question about integer sizes

2013-02-19 Thread Konstantin Belousov
On Tue, Feb 19, 2013 at 06:52:34AM -0800, m...@freebsd.org wrote: > On Tue, Feb 19, 2013 at 5:11 AM, Borja Marcos wrote: > > > > Hello, > > > > I'm really sorry if this is a stupid question, but as far as I know, > > u_int64_t defined in /usr/include/sys/t

Re: Stupid question about integer sizes

2013-02-19 Thread Borja Marcos
On Feb 19, 2013, at 3:52 PM, m...@freebsd.org wrote: > Last I knew -m32 still wasn't quite supported on 9.1. This is fixed Ahh I see. It should print a warning, then. It's the typical thing that can drive you nuts ;) Thanks, Borja. ___ freebsd

Re: Stupid question about integer sizes

2013-02-19 Thread mdf
On Tue, Feb 19, 2013 at 5:11 AM, Borja Marcos wrote: > > Hello, > > I'm really sorry if this is a stupid question, but as far as I know, > u_int64_t defined in /usr/include/sys/types.h should *always* be > a 64 bit unsigned integer, right? > > Seems there's

Stupid question about integer sizes

2013-02-19 Thread Borja Marcos
Hello, I'm really sorry if this is a stupid question, but as far as I know, u_int64_t defined in /usr/include/sys/types.h should *always* be a 64 bit unsigned integer, right? Seems there's a bug (or I need more and stronger coffee). Compiling a program on a 64 bit system with -m3

Re: Sockets programming question

2013-01-29 Thread Adrian Chadd
On 29 January 2013 09:46, Ian Lepore wrote: > You can't use EOF on a read() to determine client life when the nature > of the client/server relationship is that clients are allowed to > shutdown(fd, SHUT_WR) as soon as they connect because they expect to > receive but never send any data. > > On

Re: Sockets programming question

2013-01-29 Thread Ian Lepore
On Mon, 2013-01-28 at 18:02 +0200, Konstantin Belousov wrote: > On Mon, Jan 28, 2013 at 08:11:47AM -0700, Ian Lepore wrote: > > I've got a question that isn't exactly freebsd-specific, but > > implemenation-specific behavior may be involved. > > > > I

Re: Sockets programming question

2013-01-28 Thread Konstantin Belousov
On Mon, Jan 28, 2013 at 08:11:47AM -0700, Ian Lepore wrote: > I've got a question that isn't exactly freebsd-specific, but > implemenation-specific behavior may be involved. > > I've got a server process that accepts connections from clients on a > PF_LOCAL stream so

Re: Sockets programming question

2013-01-28 Thread Alfred Perlstein
On 1/28/13 10:11 AM, Ian Lepore wrote: I've got a question that isn't exactly freebsd-specific, but implemenation-specific behavior may be involved. I've got a server process that accepts connections from clients on a PF_LOCAL stream socket. Multiple clients can be connected at

Sockets programming question

2013-01-28 Thread Ian Lepore
I've got a question that isn't exactly freebsd-specific, but implemenation-specific behavior may be involved. I've got a server process that accepts connections from clients on a PF_LOCAL stream socket. Multiple clients can be connected at once; a list of them is tracked internal

Re: A question about creating a system call

2012-11-08 Thread Robert Watson
aster file explained. For example, if I have a foo system call, following code is added: 532 AUE_NULLSTD { int foo(char *str); } The question is in column two AUE_NULL, can I replace it with AUE_FOO? How to determine the system call should be audit or not? Thank you. Regards,

A question about creating a system call

2012-11-07 Thread dave jones
Hello, I know how to create system calls, but I'm a bit confused about sys/kern/syscalls.master file explained. For example, if I have a foo system call, following code is added: 532 AUE_NULLSTD { int foo(char *str); } The question is in column two AUE_NULL, can I repla

Re: procstat -v question

2012-11-06 Thread Wojciech Puchar
Does that 182 resident pages mean that the process being displayed is referencing that many pages itself, or does that represent how many to THIS process. Long time ago when i asked about multiple programs mapping same large files - i learned that pagetables are always per process. When you

procstat -v question

2012-11-05 Thread Ian Lepore
In a line of procstat -v output such as this: PID STARTEND PRT RES PRES REF SHD FL TP PATH 60065 0x200c1000 0x201c3000 r-x 1820 17 8 CN vn /usr/lib/libstdc++.so.6 Does that 182 resident pages mean that the process being displayed is referencing that many pages itself, or d

Re: Question on io monitoring tools such as gstat and iostat

2012-08-29 Thread Andrey Zonov
>> interval. Is that correct or am I misunderstanding how intervals work? >>> =20 >> >> Yes, you are right. For more information you can read devstat(3) or >> sources in src/lib/libdevstat/devstat.c. > > netstat does not! > And you are right, but the quest

Re: Question on io monitoring tools such as gstat and iostat

2012-08-29 Thread Daniel Braniss
> This is an OpenPGP/MIME signed message (RFC 2440 and 3156) > --enigCDF012FCB4FC78B4732FDA45 > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > > On 8/28/12 3:14 PM, Andy Young wrote: > > I am relatively new to using IO monitoring tools and

Re: Question on io monitoring tools such as gstat and iostat

2012-08-28 Thread Andrew Young
Thanks Andrey! Sent from my iPhone On Aug 28, 2012, at 1:42 PM, Andrey Zonov wrote: > On 8/28/12 3:14 PM, Andy Young wrote: >> I am relatively new to using IO monitoring tools and wanted to confirm I >> understand them correctly. If I specify an interval of 5 seconds, my >> assumption is that t

Re: Question on io monitoring tools such as gstat and iostat

2012-08-28 Thread Andrey Zonov
On 8/28/12 3:14 PM, Andy Young wrote: > I am relatively new to using IO monitoring tools and wanted to confirm I > understand them correctly. If I specify an interval of 5 seconds, my > assumption is that the data displayed is an average over that 5 second > interval. Is that correct or am I misund

Question on io monitoring tools such as gstat and iostat

2012-08-28 Thread Andy Young
I am relatively new to using IO monitoring tools and wanted to confirm I understand them correctly. If I specify an interval of 5 seconds, my assumption is that the data displayed is an average over that 5 second interval. Is that correct or am I misunderstanding how intervals work? Thanks! Andy

Re: question about amd64 pagetable page allocation.

2012-04-04 Thread vasanth rao naik sabavat
Hello Mark, >From what I understand, the virtual address of a given page table should not change when accessing from vtopte() and pmap_pte(). However, with small code change in pmap_remove_pages(), I was able to print the values returned by these two functions. vtopte() and pmap_pte(), pte1 0xf

Re: question about amd64 pagetable page allocation.

2012-04-03 Thread Mark Tinguely
On Tue, Apr 3, 2012 at 1:52 PM, vasanth rao naik sabavat wrote: > Hello Mark, > > I think pmap_remove_pages() is executed only for the current process. > >    2549 #ifdef PMAP_REMOVE_PAGES_CURPROC_ONLY >    2550     if (pmap != vmspace_pmap(curthread->td_proc->p_vmspace)) { >    2551         print

Re: question about amd64 pagetable page allocation.

2012-04-03 Thread vasanth rao naik sabavat
Hello Mark, I think pmap_remove_pages() is executed only for the current process. 2549 #ifdef PMAP_REMOVE_PAGES_CURPROC_ONLY 2550 if (pmap != vmspace_pmap(curthread->td_proc->p_vmspace)) { 2551 printf("warning: pmap_remove_pages called with non-current pmap\n"); 2552

Re: question about amd64 pagetable page allocation.

2012-04-03 Thread Mark Tinguely
On Tue, Apr 3, 2012 at 10:18 AM, vasanth rao naik sabavat wrote: > Hello Mark, > > Thank you for replying, > > Could you please point me to any document which illustrates the > implementation of recursive page tables in FreeBSD for amd64. > > Also, I just found that with the following patch from A

Re: question about amd64 pagetable page allocation.

2012-04-03 Thread vasanth rao naik sabavat
Hello Mark, Thank you for replying, Could you please point me to any document which illustrates the implementation of recursive page tables in FreeBSD for amd64. Also, I just found that with the following patch from Alon, the usage of vtopte() is removed in pmap_remove_pages(). Why was this remo

Re: question about amd64 pagetable page allocation.

2012-04-03 Thread Mark Tinguely
On Tue, Apr 3, 2012 at 8:33 AM, vasanth rao naik sabavat wrote: > Hi, > > I am trying to understand the page table page allocation for a process in > FBSD6.1. I see that the page table pages are allocated by vm_page_alloc(). > I believe the virtual address for this allocated page can be derived by

question about amd64 pagetable page allocation.

2012-04-03 Thread vasanth rao naik sabavat
Hi, I am trying to understand the page table page allocation for a process in FBSD6.1. I see that the page table pages are allocated by vm_page_alloc(). I believe the virtual address for this allocated page can be derived by PHYS_TO_DMAP(VM_PAGE_TO_PHYS(m)), however when I compare this address wit

quick question regarding libarchive

2012-02-14 Thread _
Hi, Have any changes been made to libarchive from FreeBSD 7.0 to 8.2 and is it possbile that these changes can report a tar.gz file corrupted when issuing gzip --test archive.tar.gz? When making my move from 7.0 to 8.2 I made backups, which when testing these on 7.0 ran fine. However, now these a

Re: sysctl variable question

2011-12-18 Thread mdf
2011/12/18 Fernando Apesteguía : > El 18/12/2011 22:12, "Julian Elischer" escribió: >> >> On 12/18/11 12:18 PM, Fernando Apesteguía wrote: >>> >>> Hi all, >>> >>> I'm writing a small module just for fun. I would like to have two > variables: >>> >>> - "pid" of type unsigned int and RW so the user

Re: sysctl variable question

2011-12-18 Thread Fernando Apesteguía
El 18/12/2011 22:12, "Julian Elischer" escribió: > > On 12/18/11 12:18 PM, Fernando Apesteguía wrote: >> >> Hi all, >> >> I'm writing a small module just for fun. I would like to have two variables: >> >> - "pid" of type unsigned int and RW so the user can set a pid >> - "process_name" as a string

Re: sysctl variable question

2011-12-18 Thread Julian Elischer
On 12/18/11 12:18 PM, Fernando Apesteguía wrote: Hi all, I'm writing a small module just for fun. I would like to have two variables: - "pid" of type unsigned int and RW so the user can set a pid - "process_name" as a string RD that will display the process name associated to that pid (or a mes

sysctl variable question

2011-12-18 Thread Fernando Apesteguía
Hi all, I'm writing a small module just for fun. I would like to have two variables: - "pid" of type unsigned int and RW so the user can set a pid - "process_name" as a string RD that will display the process name associated to that pid (or a message if the pid doesn't exist anymore) My problem

Re: question regarding style(9) and field initialisers in structs

2011-11-02 Thread mdf
On Wed, Nov 2, 2011 at 4:56 PM, Alexander Best wrote: > i sent the following message to freebsd-quaestions@ and got no answer. mybe it > is better suited for freebsd-hackers@. > > hi there, > > i found hundreds of the following cases in the FreeBSD src: > > [...] > struct periph_driver { >        

question regarding style(9) and field initialisers in structs

2011-11-02 Thread Alexander Best
i sent the following message to freebsd-quaestions@ and got no answer. mybe it is better suited for freebsd-hackers@. hi there, i found hundreds of the following cases in the FreeBSD src: [...] struct periph_driver { periph_init_func_t init; char*driver_n

Re: question about the exchanges of td->td_lock and mtx in sched_switch() of sched_ule

2011-10-24 Thread Attilio Rao
2011/10/13 Haozhong Zhang : > Hi, > > I'm recently reading the code of sched_ule in freebsd 8.2.0 and have two > questions. > > 1. sched_switch() (in sched_ule.c) invokes cpu_switch() (at line 1852) and > thread_unblock_switch() (at line 1867). These two functions exchange > td->td_lock and mtx. Wh

question about the exchanges of td->td_lock and mtx in sched_switch() of sched_ule

2011-10-13 Thread Haozhong Zhang
Hi, I'm recently reading the code of sched_ule in freebsd 8.2.0 and have two questions. 1. sched_switch() (in sched_ule.c) invokes cpu_switch() (at line 1852) and thread_unblock_switch() (at line 1867). These two functions exchange td->td_lock and mtx. What are the purposes of these exchanges? 2

Re: make release question

2011-07-21 Thread Nathan Whitehorn
On 07/21/11 10:42, Aryeh Friedman wrote: Where does "make release" place the disk images (iso's) by default ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-

make release question

2011-07-21 Thread Aryeh Friedman
Where does "make release" place the disk images (iso's) by default ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: priv_check() question

2011-07-05 Thread Robert Watson
tself. I'm almost done, however I get stuck with priv_check(). If the calling process is trying to send signal to processes owned by others, permission should be denied. My implementation simply uses an if (p->p_ucred->cr_uid == ksi.ksi_uid) to deny it, however priv_check() is required

Question about lseek/fseek

2011-07-04 Thread Martin Möller
Hi Hackers, Why does these function allow seeking beyond the EOF of a file in O_RDONLY/²rb² mode ? How does these function then signal the EOF correctly ? Seeking beyond the EOF makes sense for me in write-mode but not in read-only mode ! With Regards, Martin

priv_check() question

2011-07-04 Thread exorcistkiller
stuck with priv_check(). If the calling process is trying to send signal to processes owned by others, permission should be denied. My implementation simply uses an if (p->p_ucred->cr_uid == ksi.ksi_uid) to deny it, however priv_check() is required. My question is: what privilege a process should hav

Re: Question about lseek/fseek

2011-07-02 Thread Artem Belevich
On Sat, Jul 2, 2011 at 6:57 AM, Martin Möller wrote: > Hi Hackers, > > why does these function allow seeking beyond the EOF of a file in > O_RDONLY/²rb² mode ? Perhaps because the standard explicitly says that it's allowed: http://pubs.opengroup.org/onlinepubs/009695399/functions/lseek.html > Ho

Question about lseek/fseek

2011-07-02 Thread Martin Möller
Hi Hackers, why does these function allow seeking beyond the EOF of a file in O_RDONLY/²rb² mode ? How does these function then signal the EOF correctly ? Seeking beyond the EOF makes sense for me in write-mode but not in read-only mode ! With Regards, Martin

Re: Mount_nfs question

2011-05-31 Thread Rick Macklem
> Maybe you can use "showmount -a SERVER-IP", foreach server you have... > That might work. NFS doesn't actually have a notion of a "mount", but the mount protocol daemon (typically called mountd) does try and keep track of NFSv3 mounts from the requests it sees. How well this works for NFSv3 will

Re: Mount_nfs question

2011-05-31 Thread Robert Watson
the output of lsof , and netstat to the output of mount -t nfs . Does anyone have any ideas how I could track this down , is there a way to run mount and have it show the IP and not the name of the source server ? Unfortunately, there's not a good answer to this question. nfsstat(1) shou

Re: Mount_nfs question

2011-05-30 Thread Thiago Damas
Maybe you can use "showmount -a SERVER-IP", foreach server you have... Thiago 2011/5/30 Mark Saad : > On Mon, May 30, 2011 at 8:13 PM, Rick Macklem wrote: >>> Hello All >>> So I am stumped on this one. I want to know what the IP of each >>> nfs server that is providing each nfs export. I am run

Re: Mount_nfs question

2011-05-30 Thread Mark Saad
On Mon, May 30, 2011 at 8:13 PM, Rick Macklem wrote: >> Hello All >> So I am stumped on this one. I want to know what the IP of each >> nfs server that is providing each nfs export. I am running 7.4-RELEASE >> When I run "mount -t nfs" I see something like this >> >> VIP-01:/export/source on /mnt/

Re: Mount_nfs question

2011-05-30 Thread Rick Macklem
> Hello All > So I am stumped on this one. I want to know what the IP of each > nfs server that is providing each nfs export. I am running 7.4-RELEASE > When I run "mount -t nfs" I see something like this > > VIP-01:/export/source on /mnt/src > VIP-02:/export/target on /mnt/target > VIP-01:/export

Mount_nfs question

2011-05-30 Thread Mark Saad
Hello All So I am stumped on this one. I want to know what the IP of each nfs server that is providing each nfs export. I am running 7.4-RELEASE When I run "mount -t nfs" I see something like this VIP-01:/export/source on /mnt/src VIP-02:/export/target on /mnt/target VIP-01:/export/lo

Re: make question

2011-04-29 Thread Bob Bishop
Hi, This whole area is quite a mess. See for instance bin/10985 on interactions between -j, -B and .NOTPARALLEL -- Bob Bishop r...@gid.co.uk ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To u

Re: make question

2011-04-29 Thread Hartmut Brandt
t;> RD>> RD>> RD>> On Wed, 27 Apr 2011, Roman Divacky wrote: RD>> RD>> RD>> RD>> RD>You seem to have messed with bsd make so I have a question for you :) RD>> RD>> RD>> RD>> Yeah, that was some time ago ... RD>> RD>

RE: make question

2011-04-29 Thread Hartmut.Brandt
s/can/can't/ harti From: Arnaud Lacombe [lacom...@gmail.com] Sent: Friday, April 29, 2011 3:37 AM To: Brandt, Hartmut Cc: Roman Divacky; hack...@freebsd.org Subject: Re: make question Hi, On Thu, Apr 28, 2011 at 11:52 AM, Hartmut Brandt wrote: >

Re: make question

2011-04-29 Thread Roman Divacky
t; RD>> > RD>> RD>You seem to have messed with bsd make so I have a question for you :) > RD>> > RD>> Yeah, that was some time ago ... > RD>> > RD>> RD>When a job is about to be executed in JobStart() a pipe is created > with > RD>&

Re: make question

2011-04-28 Thread Warner Losh
On Apr 28, 2011, at 7:37 PM, Arnaud Lacombe wrote: > On Thu, Apr 28, 2011 at 11:52 AM, Hartmut Brandt > wrote: >> I think we can change this, because it would break makefiles that assume >> that the entire script is given to the shell in one piece. >> > I'm not sure to parse that. "We can chang

Re: make question

2011-04-28 Thread Arnaud Lacombe
Hi, On Thu, Apr 28, 2011 at 11:52 AM, Hartmut Brandt wrote: > I think we can change this, because it would break makefiles that assume > that the entire script is given to the shell in one piece. > I'm not sure to parse that. "We can change it because it would break stuff". That said, if somethi

Re: make question

2011-04-28 Thread Hartmut Brandt
On Thu, 28 Apr 2011, Roman Divacky wrote: RD>On Thu, Apr 28, 2011 at 05:52:58PM +0200, Hartmut Brandt wrote: RD>> Hi Roman, RD>> RD>> On Wed, 27 Apr 2011, Roman Divacky wrote: RD>> RD>> RD>You seem to have messed with bsd make so I have a question for you :)

Re: make question

2011-04-28 Thread Roman Divacky
On Thu, Apr 28, 2011 at 05:52:58PM +0200, Hartmut Brandt wrote: > Hi Roman, > > On Wed, 27 Apr 2011, Roman Divacky wrote: > > RD>You seem to have messed with bsd make so I have a question for you :) > > Yeah, that was some time ago ... > > RD>When a job is abo

Re: make question

2011-04-28 Thread Hartmut Brandt
Hi Roman, On Wed, 27 Apr 2011, Roman Divacky wrote: RD>You seem to have messed with bsd make so I have a question for you :) Yeah, that was some time ago ... RD>When a job is about to be executed in JobStart() a pipe is created with RD>its ends connected to job->inPipe/job->ou

Re: OMAP3 Question

2011-04-27 Thread Freddie Cash
On Wed, Apr 27, 2011 at 1:30 PM, Chris Richardson wrote: >    I wanna emulate OMAP3 Processor. Is it approach I can use to emulate > OMAP3 without the need to any hardware? Qemu has some basic support for this: http://code.google.com/p/qemu-omap3/ No idea how good it is, or if it's even usuable.

OMAP3 Question

2011-04-27 Thread Chris Richardson
Hi Community, I wanna emulate OMAP3 Processor. Is it approach I can use to emulate OMAP3 without the need to any hardware? Wishes ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe,

make question

2011-04-27 Thread Roman Divacky
hi harti! You seem to have messed with bsd make so I have a question for you :) When a job is about to be executed in JobStart() a pipe is created with its ends connected to job->inPipe/job->outPipe. When the job is actually created in JobExec() the ps.out is set to job->outPipe s

Re: SMP question w.r.t. reading kernel variables

2011-04-20 Thread Rick Macklem
was captured somewhere in the docs, if it isn't already > there somewhere (I couldn't spot it, but that doesn't mean > anything:-). > > > The question that I have about your specific scenario is concerned > > with > > VOP_SYNC(). Do you care if another thread pe

Re: SMP question w.r.t. reading kernel variables

2011-04-20 Thread Rick Macklem
MNTK_UNMOUNTF as set. But, other threads that beat thread X to step 2 > may > or may not see MNTK_UNMOUNTF as set. > First off, Alan, thanks for the great explanation. I think it would be nice if this was captured somewhere in the docs, if it isn't already there somewhere (I couldn&#x

Re: SMP question w.r.t. reading kernel variables

2011-04-20 Thread Alan Cox
On Wed, Apr 20, 2011 at 7:42 AM, Rick Macklem wrote: > > On Tue, Apr 19, 2011 at 12:00:29PM +, > > freebsd-hackers-requ...@freebsd.org wrote: > > > Subject: Re: SMP question w.r.t. reading kernel variables > > > To: Rick Macklem > > > Cc: freeb

Re: SMP question w.r.t. reading kernel variables

2011-04-20 Thread Rick Macklem
> On Tue, Apr 19, 2011 at 12:00:29PM +, > freebsd-hackers-requ...@freebsd.org wrote: > > Subject: Re: SMP question w.r.t. reading kernel variables > > To: Rick Macklem > > Cc: freebsd-hackers@freebsd.org > > Message-ID: <201104181712.14457@freebsd.org&g

  1   2   3   4   5   6   7   8   9   10   >