Re: [ptrace] please review follow fork/exec changes

2012-01-30 Thread Kostik Belousov
On Mon, Jan 30, 2012 at 10:26:25AM -0800, Dmitry Mikulin wrote: > > > On 01/28/2012 11:48 PM, Kostik Belousov wrote: > >On Fri, Jan 27, 2012 at 10:12:13AM -0800, Dmitry Mikulin wrote: > >>Attached are 4 separate patches for each somewhat independent portion of > >&

Re: Does anyone try kib's Sandy Bridge PCID patch (pcid.2.patch)?

2012-01-30 Thread Kostik Belousov
On Mon, Jan 30, 2012 at 07:08:13PM +0800, Paul Ambrose wrote: > ?? 2012??1??30?? 2:36??Kostik Belousov ?? > > On Mon, Jan 30, 2012 at 10:15:51AM +0800, Paul Ambrose wrote: > >> I have two boxes, one is AMD Athlon 610e 2.4G with FreeBSD-current > >> patched

Re: Does anyone try kib's Sandy Bridge PCID patch (pcid.2.patch)?

2012-01-29 Thread Kostik Belousov
On Mon, Jan 30, 2012 at 10:15:51AM +0800, Paul Ambrose wrote: > I have two boxes, one is AMD Athlon 610e 2.4G with FreeBSD-current > patched with pcid.2.patch? It works well without other issue and it > seem the pcid patch > does not affect other part of the kernel. The other one is Sandy Athlons

Re: [ptrace] please review follow fork/exec changes

2012-01-28 Thread Kostik Belousov
On Fri, Jan 27, 2012 at 10:12:13AM -0800, Dmitry Mikulin wrote: > Attached are 4 separate patches for each somewhat independent portion of > the kernel work related to the follow-fork implementation. Ok, as I said, I think that vfork-fork.patch is just wrong. Lets postpone discussion of the orpha

Re: knlist_empty locking fix

2012-01-27 Thread Kostik Belousov
On Fri, Jan 27, 2012 at 09:42:58AM -0800, Doug Ambrisko wrote: > Andrew Boyer writes: > | On Jan 27, 2012, at 12:15 PM, Doug Ambrisko wrote: > | > | > John Baldwin writes: > | > | Agreed, I think the missing locking should just be added to the aio > code. > | > > | > Okay so then just: > | > >

Re: knlist_empty locking fix

2012-01-27 Thread Kostik Belousov
On Thu, Jan 26, 2012 at 01:03:26PM -0800, Doug Ambrisko wrote: > Ran into problems with running kqueue/aio with WITNESS etc. Sometimes > things are locked sometimes not. knlist_remove is called telling it > whether it is locked or not ie: >extern voidknlist_remove(struct knlist *knl,

Re: [ptrace] please review follow fork/exec changes

2012-01-26 Thread Kostik Belousov
On Wed, Jan 25, 2012 at 03:48:04PM -0800, Dmitry Mikulin wrote: > Thanks for taking a look at it. I'll try to explain the changes the best I > can: the work was done nearly 6 months ago... > > >I would certainly appreciate some more words describing the changes. > > > >What is the goal of introdu

Re: nullfs broken on powerpc

2012-01-25 Thread Kostik Belousov
On Wed, Jan 25, 2012 at 10:00:26PM +0100, Andreas Tobler wrote: > On 25.01.12 21:29, Eitan Adler wrote: > >On Wed, Jan 25, 2012 at 2:50 PM, Milan Obuch > >wrote: > >>On Wed, 25 Jan 2012 14:21:23 +0200 > >>Kostik Belousov wrote: > >> > >>>

Re: nullfs broken on powerpc

2012-01-25 Thread Kostik Belousov
On Wed, Jan 25, 2012 at 08:50:41PM +0100, Milan Obuch wrote: > On Wed, 25 Jan 2012 14:21:23 +0200 > Kostik Belousov wrote: > > > On Tue, Jan 24, 2012 at 06:31:52PM +0100, Milan Obuch wrote: > > > Hi, > > > > > [ snip ] > > > > This does not w

Re: nullfs broken on powerpc

2012-01-25 Thread Kostik Belousov
On Tue, Jan 24, 2012 at 06:31:52PM +0100, Milan Obuch wrote: > Hi, > > as I succesfully installed FreeBSD on Mac Mini (older powerpc model > with G4 CPU) I tried to use mount_nullfs to share some files for more > systems. I use this method for years on i386 and amd64 platforms for > years now to s

Re: panic: No NCF_TS

2012-01-25 Thread Kostik Belousov
On Mon, Jan 23, 2012 at 06:54:49AM -0800, John Baldwin wrote: > On 1/22/12 7:05 PM, Kostik Belousov wrote: > > On Mon, Jan 23, 2012 at 05:36:42AM +0400, Yuri Pankov wrote: > >> Seems to be reproducible here running r230467 as the NFS client and > >> r230135 as NF

Re: [ptrace] please review follow fork/exec changes

2012-01-24 Thread Kostik Belousov
On Tue, Jan 24, 2012 at 01:36:55PM -0800, Marcel Moolenaar wrote: > All, > > Please review the attached changes (done by Dmitry -- CC'd) to add support for > PT_FOLLOW_EXEC and cleanup PT_FOLLOW_FORK. > > I'll commit this when there are no comments/objections. > Thanks, I would certainly appreci

Re: panic: No NCF_TS

2012-01-22 Thread Kostik Belousov
On Mon, Jan 23, 2012 at 05:36:42AM +0400, Yuri Pankov wrote: > Seems to be reproducible here running r230467 as the NFS client and > r230135 as NFS server. NFSv4 not enabled. > > # mount > [...] > sirius:/data/distfiles on /usr/ports/distfiles (nfs) > > # /usr/bin/env /usr/bin/fetch -AFpr -S 4682

Re: FreeBSD 9 & recompile ports

2012-01-13 Thread Kostik Belousov
On Fri, Jan 13, 2012 at 04:11:22PM +0200, Andriy Gapon wrote: > on 13/01/2012 14:57 George Kontostanos said the following: > > Still the question remains regarding COMPAT_FREEBSD8 and how does this > > affects ports/misc/compat8x/ > > Looks like all the previous hints have not been clear enough. >

Re: CD9660/md(4)/UFS22 silly behaviour

2012-01-08 Thread Kostik Belousov
On Sun, Jan 08, 2012 at 04:09:00PM -0800, Don Lewis wrote: > On 8 Jan, Poul-Henning Kamp wrote: > > > > I'm doing som data-mining on a pile of ISO images right now. > > > > I stuck the ISOs on a UFS2 on a flash-disk for speed, and mdconfig(8)'d > > them so I could mount them. > > > > The traffi

Re: CD9660/md(4)/UFS22 silly behaviour

2012-01-08 Thread Kostik Belousov
On Sun, Jan 08, 2012 at 10:31:06PM +, Poul-Henning Kamp wrote: > In message <20120108222720.gn31...@deviant.kiev.zoral.com.ua>, Kostik > Belousov > writes: > > >What is the access patern ? Is it random access, or sequential read > >(from the cd9660 POV) ? >

Re: CD9660/md(4)/UFS22 silly behaviour

2012-01-08 Thread Kostik Belousov
On Sun, Jan 08, 2012 at 10:21:50PM +, Poul-Henning Kamp wrote: > > I'm doing som data-mining on a pile of ISO images right now. > > I stuck the ISOs on a UFS2 on a flash-disk for speed, and mdconfig(8)'d > them so I could mount them. > > The traffic pattern his "interesting": > > dT: 1.003s

Re: dogfooding over in clusteradm land

2012-01-03 Thread Kostik Belousov
On Tue, Jan 03, 2012 at 02:57:17AM -0800, Don Lewis wrote: > On 3 Jan, Kostik Belousov wrote: > > On Tue, Jan 03, 2012 at 01:45:26AM -0800, Don Lewis wrote: > >> On 3 Jan, Kostik Belousov wrote: > >> > >> > This sounds very plausible. I think that there is

Re: dogfooding over in clusteradm land

2012-01-03 Thread Kostik Belousov
On Tue, Jan 03, 2012 at 01:45:26AM -0800, Don Lewis wrote: > On 3 Jan, Kostik Belousov wrote: > > > This sounds very plausible. I think that there is no sense in restarting > > the scan if it is requested in async mode at all. See below. > > > > Would be thril

Re: dogfooding over in clusteradm land

2012-01-03 Thread Kostik Belousov
s through the object, ignoring generation, and > then return when it is called from the syncer. That should keep > vm_object_set_writeable_dirty() from looping over the object again and > again if another process is actively dirtying the object. > This sounds very plausible. I think

Re: dogfooding over in clusteradm land

2012-01-02 Thread Kostik Belousov
On Mon, Jan 02, 2012 at 12:47:03PM -0800, Don Lewis wrote: > On 2 Jan, Florian Smeets wrote: > > On 29.12.11 01:04, Kirk McKusick wrote: > >> Rather than changing BKVASIZE, I would try running the cvs2svn > >> conversion on a 16K/2K filesystem and see if that sorts out the > >> problem. If it does

Re: lang/lua: /usr/bin/ld: lapi.o: relocation R_X86_64_32 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC

2011-12-29 Thread Kostik Belousov
On Thu, Dec 29, 2011 at 12:19:40PM +0100, O. Hartmann wrote: > Am 12/29/11 11:48, schrieb Rainer Hurling: > > On 28.12.2011 19:31 (UTC+1), Kostik Belousov wrote: > >> On Wed, Dec 28, 2011 at 07:21:00PM +0100, O. Hartmann wrote: > >>> Am 12/28/11 19:10, schrieb Ed Sch

Re: SU+J systems do not fsck themselves

2011-12-28 Thread Kostik Belousov
On Wed, Dec 28, 2011 at 11:14:19AM -0800, m...@freebsd.org wrote: > SU doesn't care about write ordering, as long as everything before a > BIO_FLUSH is really flushed by the time the BIO_FLUSH is acknowledged. No. SU and SU+J only require that write completed notification is issued when geom/drive

Re: /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libstdc++.a: could not read symbols: Bad value

2011-12-28 Thread Kostik Belousov
On Wed, Dec 28, 2011 at 07:21:00PM +0100, O. Hartmann wrote: > Am 12/28/11 19:10, schrieb Ed Schouten: > > * Rainer Hurling , 20111228 17:31: > >> error: macro "_Static_assert" passed 3 arguments, but takes just 2 > >> In file included from > >> /usr/ports/lang/gcc46/work/gcc-4.6-20111209/libstdc+

Re: /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libstdc++.a: could not read symbols: Bad value

2011-12-28 Thread Kostik Belousov
On Wed, Dec 28, 2011 at 03:10:12PM +0100, O. Hartmann wrote: > Am 12/28/11 14:58, schrieb Kostik Belousov: > > On Wed, Dec 28, 2011 at 11:48:28AM +0100, O. Hartmann wrote: > >> Hello out here. > >> > >> I run into a problem since one of the last portupdates and

Re: /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libstdc++.a: could not read symbols: Bad value

2011-12-28 Thread Kostik Belousov
On Wed, Dec 28, 2011 at 11:48:28AM +0100, O. Hartmann wrote: > Hello out here. > > I run into a problem since one of the last portupdates and I do not know > whether this has to do with binutils or gcc46 or even FreeBSD 9.0/10.0 > AMD64. > > Background: > We use a scientific graphical toolset for

Re: [patch] Cleaning up amd64 kernel optimization options

2011-12-23 Thread Kostik Belousov
On Fri, Dec 23, 2011 at 08:04:32PM +0100, Dimitry Andric wrote: > On 2011-12-23 18:55, Kostik Belousov wrote: > >On Fri, Dec 23, 2011 at 06:03:42PM +0100, Dimitry Andric wrote: > ... > >>The only thing my patch makes sure of, is that amd64 does the same thing > >>as a

Re: [patch] Cleaning up amd64 kernel optimization options

2011-12-23 Thread Kostik Belousov
On Fri, Dec 23, 2011 at 06:03:42PM +0100, Dimitry Andric wrote: > On 2011-12-23 17:00, Alexander Best wrote: > ... > >>>Back in the 7.x days, I ran into some code that wasn't easily to debug > >>>because the compiler optimized things out with -O2 by inlining and > >>otherwise shifting around code,

Re: extattr_set_*() return type

2011-12-21 Thread Kostik Belousov
On Wed, Dec 21, 2011 at 12:25:18PM -0500, John Baldwin wrote: > On Wednesday, December 21, 2011 11:13:10 am Kostik Belousov wrote: > > On Wed, Dec 21, 2011 at 10:31:11AM -0500, John Baldwin wrote: > > > On Tuesday, December 20, 2011 5:18:58 pm m...@freebsd.org wrote: > >

Re: extattr_set_*() return type

2011-12-21 Thread Kostik Belousov
On Wed, Dec 21, 2011 at 10:31:11AM -0500, John Baldwin wrote: > On Tuesday, December 20, 2011 5:18:58 pm m...@freebsd.org wrote: > > On Tue, Dec 20, 2011 at 1:49 PM, John Baldwin wrote: > > > Hmm, if these functions are expected to operate like 'write(2)' and are > > > supposed to return the numbe

Re: calling all fs experts

2011-12-11 Thread Kostik Belousov
On Sat, Dec 10, 2011 at 05:42:01PM -0800, Maksim Yevmenkin wrote: > Hello, > > i have a question for fs wizards. > > suppose i can persuade modern spinning disk to do "large" reads (say > 512K to 1M) at a time. also, suppose file system on such modern > spinning drive is used to store large files

Re: Adding bool, true, and false to the kernel

2011-12-09 Thread Kostik Belousov
On Thu, Dec 08, 2011 at 04:36:58PM -0800, Matthew Fleming wrote: > This code should be MFC-able to stable/9 after 9.0 is released. Yes, please make sure to merge it to stable/9. pgpJdscbva0LS.pgp Description: PGP signature

Re: running old binaries on -current

2011-12-04 Thread Kostik Belousov
On Sun, Dec 04, 2011 at 08:54:27PM +0100, Yamagi Burmeister wrote: > On Fri, 2 Jul 2010 21:44:26 +0300 > Kostik Belousov wrote: > > > On Fri, Jul 02, 2010 at 11:12:13AM -0700, Julian Elischer wrote: > > > every now and then, for fun I run up a chroot of freebsd 1.1. or 1

Re: [patch] turning devctl into a "multiple openable" device

2011-12-02 Thread Kostik Belousov
On Fri, Dec 02, 2011 at 12:17:21AM +0100, Baptiste Daroussin wrote: > On Wed, Nov 30, 2011 at 05:20:17PM +0100, Olivier Houchard wrote: > > On Wed, Nov 30, 2011 at 06:04:50PM +0200, Kostik Belousov wrote: > > > > > I wonder why the waiting_threads stuff is needed at all. T

Re: r227487 breaks C++ programs that use __isthreaded

2011-12-02 Thread Kostik Belousov
On Thu, Dec 01, 2011 at 04:23:11PM -0500, David Schultz wrote: > On Thu, Dec 01, 2011, George Liaskos wrote: > > Hello > > > > One example is Google's tcmalloc [1], is this behaviour intended? > > > > [1] > > http://code.google.com/p/google-perftools/source/browse/trunk/src/maybe_threads.cc > >

Re: Incorrect tag= in /usr/src/share/examples/cvsup/sta(ble|ndard) in 9.0-PRERELEASE?

2011-12-01 Thread Kostik Belousov
On Thu, Dec 01, 2011 at 12:12:18PM +0300, Sergey Kandaurov wrote: > On 1 December 2011 10:20, Milan Obuch wrote: > > On Tue, 29 Nov 2011 19:22:39 +0300 > > Sergey Kandaurov wrote: > > > >> On 29 November 2011 20:16, Maxim Khitrov wrote: > >> > On Tue, Nov 29, 2011 at 10:30 AM, Sergey Kandaurov >

Re: [patch] turning devctl into a "multiple openable" device

2011-11-30 Thread Kostik Belousov
On Wed, Nov 30, 2011 at 04:55:21PM +0100, Olivier Houchard wrote: > On Wed, Nov 30, 2011 at 05:46:36PM +0200, Kostik Belousov wrote: > > On Wed, Nov 30, 2011 at 10:05:11AM -0500, John Baldwin wrote: > > > On Wednesday, November 30, 2011 7:43:20 am Baptiste Daroussin wro

Re: [patch] turning devctl into a "multiple openable" device

2011-11-30 Thread Kostik Belousov
On Wed, Nov 30, 2011 at 10:05:11AM -0500, John Baldwin wrote: > On Wednesday, November 30, 2011 7:43:20 am Baptiste Daroussin wrote: > > Hi all, > > > > With the help of cognet, I wrote a patch to turn devctl into a multiple > > openable > > device, that mean that it will allow to open /dev/devct

Re: panic: handle_written_inodeblock: live inodedep

2011-11-26 Thread Kostik Belousov
On Fri, Nov 25, 2011 at 09:08:27PM +0400, Gleb Smirnoff wrote: > Hi! > > Running HEAD with KMS patches from kib@, a 15th November > snapshot build from kms branch from ~kib/deviant2 repository. > The panic message and backtrace look unrelated to KMS, so, > I think my kernel can be considered a

Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-24 Thread Kostik Belousov
On Thu, Nov 24, 2011 at 09:38:19PM +0400, Maxim Konovalov wrote: > Hi Kostik, > > On Wed, 23 Nov 2011, 11:22+0400, Maxim Konovalov wrote: > > > [...] > > > Anyway, the patch needs testers before I will push it forward. > > > > > [igor's email was corrected] > > > > We will test it in out environm

Re: RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-22 Thread Kostik Belousov
On Tue, Nov 22, 2011 at 07:43:57PM +0400, Maxim Dounin wrote: > Hello! > > On Tue, Nov 22, 2011 at 02:44:10PM +0200, Kostik Belousov wrote: > > > I was reminded about the patch I wrote for Igor Sysoev some time ago. > > The issue the patch tries to handle is that jema

RLIMIT_DATA and malloc(3) use of mmap(2)

2011-11-22 Thread Kostik Belousov
I was reminded about the patch I wrote for Igor Sysoev some time ago. The issue the patch tries to handle is that jemalloc uses mmap() instead of sbrk() for pages allocation, and thus RLIMIT_DATA limit is no longer effective to put the bounds on the process heap. Since reverting to sbrk for such pu

Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers

2011-11-22 Thread Kostik Belousov
On Mon, Nov 21, 2011 at 06:39:26PM +0100, Robert Millan wrote: > (replying with Debian hat this time) > > 2011/11/21 Kostik Belousov : > > There are some implementations that > > use FreeBSD kernel, and which could potentially benefit from providing > > its own

Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers

2011-11-21 Thread Kostik Belousov
On Mon, Nov 21, 2011 at 01:45:29PM +1100, Bruce Evans wrote: > On Sun, 20 Nov 2011, Kostik Belousov wrote: > > >On Sun, Nov 20, 2011 at 12:40:42PM +0100, Robert Millan wrote: > >>On Sat, Nov 19, 2011 at 07:56:20PM +0200, Kostik Belousov wrote: > >>>I fully agree

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-20 Thread Kostik Belousov
On Sun, Nov 20, 2011 at 08:22:38PM +0100, Attilio Rao wrote: > 2011/11/20 Kostik Belousov : > > On Sun, Nov 20, 2011 at 08:04:21PM +0100, Attilio Rao wrote: > >> This other patch converts sx to a similar interface which cleans up > >> vm_map.c: > >

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-20 Thread Kostik Belousov
On Sun, Nov 20, 2011 at 08:04:21PM +0100, Attilio Rao wrote: > This other patch converts sx to a similar interface which cleans up vm_map.c: > http://www.freebsd.org/~attilio/sxfileline.patch > > What do you think about it? This one only changes the KBI ? Note that _sx suffix is not reserved. p

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-20 Thread Kostik Belousov
On Sun, Nov 20, 2011 at 07:02:14PM +0100, Attilio Rao wrote: > 2011/11/20 Kostik Belousov : > > +#define        vm_page_lock_assert(m, a)       \ > > +    vm_page_lock_assert_KBI((m), (a), LOCK_FILE, LOCK_LINE) > > I think you should put the "\" in the last tab a

Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers

2011-11-20 Thread Kostik Belousov
On Sun, Nov 20, 2011 at 12:40:42PM +0100, Robert Millan wrote: > On Sat, Nov 19, 2011 at 07:56:20PM +0200, Kostik Belousov wrote: > > I fully agree with an idea that compiler is not an authorative source > > of the knowledge of the FreeBSD version. Even more, I argue that we shall

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-20 Thread Kostik Belousov
On Sun, Nov 20, 2011 at 05:37:33PM +0100, Attilio Rao wrote: > 2011/11/18 Attilio Rao : > > Please consider: > > http://www.freebsd.org/~attilio/mutexfileline2.patch > > This is now committed as r227758,227759, you can update your patch now. Here is it. diff --git a/sys/vm/vm_page.c b/sys/vm/vm_p

Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers

2011-11-19 Thread Kostik Belousov
On Sat, Nov 19, 2011 at 10:32:50AM +0100, Robert Millan wrote: > 2011/11/18 Robert Millan : > > 2011/11/17 John Baldwin : > >> Hmm, I wonder if it's better to use the #ifndef approach rather than #undef > >> so that when compilers are updated to DTRT we will honor their settings? > > > > Well, the

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-18 Thread Kostik Belousov
On Fri, Nov 18, 2011 at 11:56:55AM +0100, Attilio Rao wrote: > 2011/11/18 Kostik Belousov : > > On Fri, Nov 18, 2011 at 11:40:28AM +0100, Attilio Rao wrote: > >> 2011/11/16 Kostik Belousov : > >> > On Tue, Nov 15, 2011 at 07:15:01PM +0100, Attilio Rao wrote: >

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-18 Thread Kostik Belousov
On Fri, Nov 18, 2011 at 11:40:28AM +0100, Attilio Rao wrote: > 2011/11/16 Kostik Belousov : > > On Tue, Nov 15, 2011 at 07:15:01PM +0100, Attilio Rao wrote: > >> 2011/11/7 Kostik Belousov : > >> > On Mon, Nov 07, 2011 at 11:45:38AM -0600, Alan Cox wrote: >

Re: Stop scheduler on panic

2011-11-17 Thread Kostik Belousov
On Thu, Nov 17, 2011 at 02:40:45PM +0200, Alexander Motin wrote: > On 11/17/11 13:14, Kostik Belousov wrote: > > On Thu, Nov 17, 2011 at 11:29:02AM +0200, Alexander Motin wrote: > >> On 11/17/11 11:06, Kostik Belousov wrote: > >>> On Thu, Nov 17, 2011 at 10:40:58A

Re: Stop scheduler on panic

2011-11-17 Thread Kostik Belousov
On Thu, Nov 17, 2011 at 11:29:02AM +0200, Alexander Motin wrote: > On 11/17/11 11:06, Kostik Belousov wrote: > > On Thu, Nov 17, 2011 at 10:40:58AM +0200, Alexander Motin wrote: > >> On 11/17/11 10:15, Kostik Belousov wrote: > >>> On Thu, Nov 17, 2011 at 01:07:38A

Re: Stop scheduler on panic

2011-11-17 Thread Kostik Belousov
On Thu, Nov 17, 2011 at 10:40:58AM +0200, Alexander Motin wrote: > On 11/17/11 10:15, Kostik Belousov wrote: > > On Thu, Nov 17, 2011 at 01:07:38AM +0200, Alexander Motin wrote: > >> On 17.11.2011 00:21, Andriy Gapon wrote: > >>> on 16/11/2011 21:27 Fabian Keil sai

Re: Stop scheduler on panic

2011-11-17 Thread Kostik Belousov
On Thu, Nov 17, 2011 at 01:07:38AM +0200, Alexander Motin wrote: > On 17.11.2011 00:21, Andriy Gapon wrote: > >on 16/11/2011 21:27 Fabian Keil said the following: > >>Kostik Belousov wrote: > >> > >>>I was tricked into finishing the work by Andrey Gapon, w

Re: [head tinderbox] failure on amd64/amd64

2011-11-16 Thread Kostik Belousov
On Wed, Nov 16, 2011 at 06:18:59PM +, FreeBSD Tinderbox wrote: > TB --- 2011-11-16 15:30:00 - tinderbox 2.8 running on > freebsd-current.sentex.ca > TB --- 2011-11-16 15:30:00 - starting HEAD tinderbox run for amd64/amd64 > TB --- 2011-11-16 15:30:00 - cleaning the object tree > TB --- 2011-11

Re: [RFC] Enable nxstack by default

2011-11-16 Thread Kostik Belousov
On Wed, Nov 16, 2011 at 01:09:18AM +0100, Oliver Pinter wrote: > On 11/15/11, Jeremie Le Hen wrote: > > Hi, > > > > On Wed, Oct 19, 2011 at 12:37:44AM +0200, Oliver Pinter wrote: > >> In NetBSD has been some PaX feature [0] implemented. (ASLR, W^X > >> (~nxstack), mprotect restriction, veriexec, m

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-16 Thread Kostik Belousov
On Tue, Nov 15, 2011 at 07:15:01PM +0100, Attilio Rao wrote: > 2011/11/7 Kostik Belousov : > > On Mon, Nov 07, 2011 at 11:45:38AM -0600, Alan Cox wrote: > >> Ok.  I'll offer one final suggestion.  Please consider an alternative > >> suffix to "func".

Re: Stop scheduler on panic

2011-11-14 Thread Kostik Belousov
On Mon, Nov 14, 2011 at 12:06:48PM +0200, Andriy Gapon wrote: > on 13/11/2011 10:32 Kostik Belousov said the following: > > I was tricked into finishing the work by Andrey Gapon, who developed the > > patch to reliably stop other processors on panic. The patch greatly > > im

Stop scheduler on panic

2011-11-13 Thread Kostik Belousov
I was tricked into finishing the work by Andrey Gapon, who developed the patch to reliably stop other processors on panic. The patch greatly improves the chances of getting dump on panic on SMP host. Several people already saw the patchset, and I remember that Andrey posted it to some lists. The

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-07 Thread Kostik Belousov
On Mon, Nov 07, 2011 at 11:47:59AM -0800, m...@freebsd.org wrote: > On Mon, Nov 7, 2011 at 11:35 AM, Kostik Belousov wrote: > > On Mon, Nov 07, 2011 at 11:45:38AM -0600, Alan Cox wrote: > >> Ok.  I'll offer one final suggestion.  Please consider an alternative > >

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-07 Thread Kostik Belousov
On Mon, Nov 07, 2011 at 11:45:38AM -0600, Alan Cox wrote: > Ok. I'll offer one final suggestion. Please consider an alternative > suffix to "func". Perhaps, "kbi" or "KBI". In other words, something > that hints at the function's reason for existing. Sure. Below is the extraction of only vm_

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-06 Thread Kostik Belousov
On Sun, Nov 06, 2011 at 07:22:51AM -0800, m...@freebsd.org wrote: > On Sun, Nov 6, 2011 at 4:43 AM, Kostik Belousov wrote: > > Regarding the _vm_page_lock() vs. vm_page_lock_func(), the mutex.h has > > a lot of violations in regard of the namespaces, IMO. The __* namespace > >

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-06 Thread Kostik Belousov
On Sat, Nov 05, 2011 at 03:00:58PM -0500, Alan Cox wrote: > On 11/05/2011 10:15, Kostik Belousov wrote: > >On Sat, Nov 05, 2011 at 07:37:48AM -0700, m...@freebsd.org wrote: > >>On Sat, Nov 5, 2011 at 7:13 AM, Kostik Belousov > >>wrote: > >>>On Fri, N

Re: 9.0/i386 build failure

2011-11-05 Thread Kostik Belousov
On Sat, Nov 05, 2011 at 08:06:26PM +0100, Dimitry Andric wrote: > On 2011-11-05 14:28, Kostik Belousov wrote: > > On Sat, Nov 05, 2011 at 02:20:03PM +0100, Dimitry Andric wrote: > >> On 2011-11-04 20:09, Michael W. Lucas wrote: > ... > >>> : undefined ref

Re: vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-05 Thread Kostik Belousov
On Sat, Nov 05, 2011 at 07:37:48AM -0700, m...@freebsd.org wrote: > On Sat, Nov 5, 2011 at 7:13 AM, Kostik Belousov wrote: > > On Fri, Nov 04, 2011 at 06:03:39PM +0200, Kostik Belousov wrote: > > > > Below is the KBI patch after vm_page_bits_t merge is done. > >

vm_page_t related KBI [Was: Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3]

2011-11-05 Thread Kostik Belousov
On Fri, Nov 04, 2011 at 06:03:39PM +0200, Kostik Belousov wrote: Below is the KBI patch after vm_page_bits_t merge is done. Again, I did not spent time converting all in-tree consumers from the (potentially) loadable modules to the new KPI until it is agreed upon. diff --git a/sys/nfsclient

Re: 9.0/i386 build failure

2011-11-05 Thread Kostik Belousov
On Sat, Nov 05, 2011 at 02:20:03PM +0100, Dimitry Andric wrote: > On 2011-11-04 20:09, Michael W. Lucas wrote: > > I suspect I'm building on a system that's too old, but it's worth > > asking. > > > > FreeBSD eyeball.lodden.com 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sat Aug 29 > > 00:31:14 EDT 2009

Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3

2011-11-04 Thread Kostik Belousov
On Fri, Nov 04, 2011 at 10:48:45AM -0500, Alan Cox wrote: > On 11/04/2011 10:30, Kostik Belousov wrote: > > for (b = i = 0; i<= PAGE_SIZE / DEV_BSIZE; ++i) { > > if (i == (PAGE_SIZE / DEV_BSIZE) || > >-(m->valid& (1<&l

Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3

2011-11-04 Thread Kostik Belousov
On Fri, Nov 04, 2011 at 10:09:09AM -0500, Alan Cox wrote: > On 11/04/2011 05:08, Kostik Belousov wrote: > >On Thu, Nov 03, 2011 at 12:51:10PM -0500, Alan Cox wrote: > >>I would suggest introducing the vm_page_bits_t change first. If, at the > >>same time, you chan

Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3

2011-11-04 Thread Kostik Belousov
On Thu, Nov 03, 2011 at 12:51:10PM -0500, Alan Cox wrote: > On 11/03/2011 08:24, Kostik Belousov wrote: > >On Thu, Nov 03, 2011 at 12:40:08AM -0500, Alan Cox wrote: > >>On 11/02/2011 05:32, Andriy Gapon wrote: > >>>[restored cc: to the original poster] > &g

Re: panic at vm_page_wire with FreeBSD 9.0 Beta 3

2011-11-03 Thread Kostik Belousov
On Thu, Nov 03, 2011 at 12:40:08AM -0500, Alan Cox wrote: > On 11/02/2011 05:32, Andriy Gapon wrote: > >[restored cc: to the original poster] > >As Bruce Evans has pointed to me privately [I am not sure why privately], > >there > >is already an example in i386 and amd64 atomic.h, where operations

x86: how to get maximum possible CPU frequency ?

2011-10-30 Thread Kostik Belousov
Assume we are running on the single-package X86 machine, how to answer the question: what is the possible maximum tsc frequency ? I read tsc_levels_changed(), is it the right way to query the max frequency for the general purpose driver ? If yes, could the code be made into the utility function ?

Re: In-kernel API for tasks, which could wait?

2011-10-30 Thread Kostik Belousov
On Sun, Oct 30, 2011 at 06:54:51PM +0400, Lev Serebryakov wrote: > So, I have question: what should I do if I need to perofrm ONE > action, which could block for some time (for example, open file or > create ALQ)? > > I could create thread for this. But it looks strange and too heavy: create >

Re: getting the cpuid for a userspace process ?

2011-10-25 Thread Kostik Belousov
On Tue, Oct 25, 2011 at 01:42:45PM -0400, John Baldwin wrote: > On Tuesday, October 25, 2011 11:06:22 am Luigi Rizzo wrote: > > as the subject says... is there any way to get the current > > CPU id for a userspace process (of course, > > valid only at the time the function is called as the > > proc

Re: 9.0-RC1 panic in tcp_input: negative winow.

2011-10-23 Thread Kostik Belousov
On Sun, Oct 23, 2011 at 08:10:38AM +0200, Pawel Jakub Dawidek wrote: > On Sun, Oct 23, 2011 at 12:35:15PM +1100, Lawrence Stewart wrote: > > On 10/22/11 19:49, Pawel Jakub Dawidek wrote: > > > The panic message says: > > > > > > panic: tcp_input negative window: tp 0xfe007763e000 rcv_nxt > >

Re: 9.0 RC1/Clang / illegal instruction (Signal 4) in gengtype while building cc_tools on i586.

2011-10-23 Thread Kostik Belousov
On Sun, Oct 23, 2011 at 10:24:12AM +0200, Roman Divacky wrote: > > Program received signal SIGILL, Illegal instruction. > > 0x08048b24 in do_typedef (s=0x80532bf "CUMULATIVE_ARGS", pos=0x805e1a4) > > at > > /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c:103 > > 103 { >

Re: [RFC] Enable nxstack by default

2011-10-18 Thread Kostik Belousov
t; wrote: > >>> On Tue, 18 Oct 2011, Arnaud Lacombe wrote: > >>> > >>>> Hi, > >>>> > >>>> On Tue, Oct 18, 2011 at 5:07 AM, Kostik Belousov > >>>> wrote: > >>>>> > >>>>> On

Re: freebsd-9.0 smartmontools and ada devices

2011-10-18 Thread Kostik Belousov
On Tue, Oct 18, 2011 at 11:02:42AM +0200, John Hay wrote: > On Tue, Oct 18, 2011 at 09:39:24AM +0200, John Hay wrote: > > Hi Guys, > > > > I have upgraded my desktop from 8.2-stable to 9.0-RC1 (from source), using > > a GENERIC kernel. I have installed the smartmontools-5.41_3 package from > > a m

Re: [RFC] Enable nxstack by default

2011-10-18 Thread Kostik Belousov
On Mon, Oct 17, 2011 at 09:30:56PM +0200, Oliver Pinter wrote: > Hi all! > > I think, it's the time to enable the nxstack feature. Any comments, > pros, cons? I dragged the change long enough for it to miss the 9.0. After the 9.0 is released, I will flip the switch with the following change. dif

Re: cvsup broken on amd64?

2011-10-06 Thread Kostik Belousov
On Wed, Oct 05, 2011 at 03:21:45PM -0700, David O'Brien wrote: > On Fri, Sep 09, 2011 at 06:00:02PM +0300, Kostik Belousov wrote: > > --- libs/m3core/src/thread/POSIX/ThreadPosix.m3.orig2011-09-09 > > 17:58:12.867431639 +0300 > > +++ libs/m3core/src/thread/POSIX/

Re: pmap_qenter() - the page *must* be wired - is violated

2011-10-06 Thread Kostik Belousov
On Thu, Oct 06, 2011 at 01:45:16PM +0200, Svatopluk Kraus wrote: > On Wed, Oct 5, 2011 at 4:53 PM, Kostik Belousov wrote: > > On Wed, Oct 05, 2011 at 02:28:01PM +0200, Svatopluk Kraus wrote: > >> Hi, > >> > >>   I found out that on a few places pmap_qenter() i

Re: pmap_qenter() - the page *must* be wired - is violated

2011-10-05 Thread Kostik Belousov
On Wed, Oct 05, 2011 at 02:28:01PM +0200, Svatopluk Kraus wrote: > Hi, > > I found out that on a few places pmap_qenter() is called on pages > which are not wired. For example, in the following functions, when > vm_pager_get_pages() is called, the pages are not wired: > > exec_map_first_page(

Re: x220 notes

2011-10-04 Thread Kostik Belousov
On Tue, Oct 04, 2011 at 02:38:06PM -0700, matt wrote: > > > > Friend had idea of trying to resume under X with external > > > VGA display...both remained off, however I am using the Intel GPU > > > experimental drivers (To make a note, resume is broken without them > > > as well). > > Suspend/resu

Re: x220 notes

2011-10-04 Thread Kostik Belousov
On Tue, Oct 04, 2011 at 12:26:27PM -0700, matt wrote: > On Tue, 4 Oct 2011 02:21:59 -0400 (EDT) > Benjamin Kaduk wrote: > > > On Mon, 3 Oct 2011, matt wrote: > > > > > Ultimately, I think if we can set backlight, we can fix the screen > > > after resume...I think it's just the backlight is low/o

Re: st_dev and st_ino for pipes

2011-10-04 Thread Kostik Belousov
On Tue, Oct 04, 2011 at 05:37:27PM +1100, Peter Jeremy wrote: > On 2011-Oct-03 01:04:05 +0300, Kostik Belousov wrote: > >Our implementation of pipes does not provide useful values for st_dev > >and st_ino when stat(2) is done on an anonymous pipe. It was noted by the >

st_dev and st_ino for pipes

2011-10-02 Thread Kostik Belousov
Our implementation of pipes does not provide useful values for st_dev and st_ino when stat(2) is done on an anonymous pipe. It was noted by the people outside the project, e.g. Perl contains a workaround in one of its modules, submitted by Debian/kFreeBSD developers, see http://bugs.debian.org/cgi-

Re: stable/9 r225827 i386 panic: vm_page_unwire: page 0xc2a38dc8's wire count is zero

2011-09-29 Thread Kostik Belousov
On Thu, Sep 29, 2011 at 04:12:19PM +0300, Alexandr Kovalenko wrote: > 2011/9/29 Kostik Belousov : > > On Thu, Sep 29, 2011 at 03:51:53PM +0300, Alexandr Kovalenko wrote: > >> 2011/9/29 Kostik Belousov : > >> > On Thu, Sep 29, 2011 at 03:47:19PM +0300, Alexandr Kovale

Re: stable/9 r225827 i386 panic: vm_page_unwire: page 0xc2a38dc8's wire count is zero

2011-09-29 Thread Kostik Belousov
On Thu, Sep 29, 2011 at 03:51:53PM +0300, Alexandr Kovalenko wrote: > 2011/9/29 Kostik Belousov : > > On Thu, Sep 29, 2011 at 03:47:19PM +0300, Alexandr Kovalenko wrote: > >> On Thu, Sep 29, 2011 at 3:30 PM, Kostik Belousov > >> wrote: > >> > On Thu, Sep

Re: stable/9 r225827 i386 panic: vm_page_unwire: page 0xc2a38dc8's wire count is zero

2011-09-29 Thread Kostik Belousov
On Thu, Sep 29, 2011 at 03:47:19PM +0300, Alexandr Kovalenko wrote: > On Thu, Sep 29, 2011 at 3:30 PM, Kostik Belousov wrote: > > On Thu, Sep 29, 2011 at 02:52:31PM +0300, Alexandr Kovalenko wrote: > >> Hello! > >> > >> I'm running 9.0-BETA3 (r225

Re: stable/9 r225827 i386 panic: vm_page_unwire: page 0xc2a38dc8's wire count is zero

2011-09-29 Thread Kostik Belousov
On Thu, Sep 29, 2011 at 02:52:31PM +0300, Alexandr Kovalenko wrote: > Hello! > > I'm running 9.0-BETA3 (r225827) and now rebuilding all my 1215 ports > (I've upgraded from 8.2). I'm getting panic. Is it known > problem/already fixed somewhere? > > FreeBSD mile.xxx.ua 9.0-BETA3 FreeBSD 9.0-BETA3 #

Re: ia64 r225789 panic during "make installworld": Bad buffer logic, remain = 0

2011-09-28 Thread Kostik Belousov
On Wed, Sep 28, 2011 at 04:27:39PM +0300, Jaakko Heinonen wrote: > On 2011-09-28, Anton Shterenlikht wrote: > > KDB: stack backtrace: > > getenv with the following non-sleepable locks held: > > exclusive sleep mutex vnode interlock (vnode interlock) r = 0 > > (0xe00011950488) locked @ /usr/src

Re: Choosing between DELAY(useconds) and pause()

2011-09-27 Thread Kostik Belousov
On Tue, Sep 27, 2011 at 10:39:44AM -0600, Julian Elischer wrote: > On 9/27/11 4:12 AM, Gavin Atkinson wrote: > >On Mon, 2011-09-26 at 09:30 -0400, John Baldwin wrote: > >>On Friday, September 23, 2011 11:21:06 am Gavin Atkinson wrote: > >>>On Thu, 2011-09-22 at 20:07 +0200, Hans Petter Selasky wrot

Re: truss

2011-09-19 Thread Kostik Belousov
On Mon, Sep 19, 2011 at 04:03:42PM +, Anton Yuzhaninov wrote: > On Mon, 19 Sep 2011 15:00:31 + (UTC), Anton Yuzhaninov wrote: > AY> On Mon, 19 Sep 2011 15:58:02 +0300, Mikolaj Golub wrote: > AY>>> ktrace -i for truss sleep 5 > AY>>> http://dl.dropbox.com/u/8798217/tmp/truss_ktrace2.txt >

Re: cvsup broken on amd64?

2011-09-18 Thread Kostik Belousov
On Sun, Sep 18, 2011 at 02:46:24PM +0200, Oliver Lehmann wrote: > > Kostik Belousov wrote: > > >Did you saw the message with the patch for tzcode I mailed to you ? > > Mmmh... no didn't reached my mailbox - can you resend it please? See the "Segfault in libth

Re: Segfault in libthr.so on 9.0-BETA2 (with stunnel FWIW)

2011-09-18 Thread Kostik Belousov
On Sun, Sep 18, 2011 at 01:56:50PM +0200, Jilles Tjoelker wrote: > On Wed, Sep 14, 2011 at 11:04:56PM +0300, Kostik Belousov wrote: > > tzload() allocates ~80KB for the local variables. The backtrace you provided > > shows the nested call to tzload(), so there is total 160KB of the

Re: cvsup broken on amd64?

2011-09-18 Thread Kostik Belousov
On Sun, Sep 18, 2011 at 12:22:53PM +0200, Oliver Lehmann wrote: > > Adrian Chadd wrote: > > >So I've taken a look at the csup source. > > > >[...] > > > >What about this patch: > > > >[...] > > > >Oliver, would you please try that? > > I have a problem with cvsup, not csup - Alexander mentioned

Re: Crashes in world built w/ clang: FP registers?

2011-09-17 Thread Kostik Belousov
On Fri, Sep 16, 2011 at 10:34:40PM -0500, Jason Harmening wrote: > Hi everyone, > > Using clang as the default compiler, the kernel and drivers will work > fine, but a lot of programs in the base system and ports will crash w/ > SIGBUS. In fact, so much of the stuff in the chroot'ed world will >

Re: svn commit: r225474 - in head/sys: amd64/amd64 amd64/ia32 i386/i386 ia64/ia32 ia64/ia64 kern powerpc/aim powerpc/booke sparc64/sparc64 sys

2011-09-14 Thread Kostik Belousov
[It seems that distribution list can be trimmed without any bad consequences] On Wed, Sep 14, 2011 at 01:50:51PM -0700, Garrett Cooper wrote: > On Sun, Sep 11, 2011 at 9:05 AM, Konstantin Belousov wrote: > > Author: kib > > Date: Sun Sep 11 16:05:09 2011 > > New Revision: 225474 > > URL: http://sv

  1   2   3   >