Fix node reference leakage in iwi(4)/ipw(4)

2007-02-12 Thread Sepherosa Ziehau

Hi,

iwi(4) or ipw(4) users please test following patch:
http://leaf.dragonflybsd.org/~sephe/drain_mgtq.diff

Apply it under src/sys/dev/netif (HEAD/PREVIEW/1.8)

If no problems pop up  no objection comes, it will be comitted one week later.

Best Regards,
sephe

--
Live Free or Die


Re: Fix node reference leakage in iwi(4)/ipw(4)

2007-02-12 Thread Johannes Hofmann
Hi sephe,

your patch installs and runs nicely on my thinkpad t42 (iwi).
No negative effects so far. What problem is it supposed to fix?

Regards,
Johannes


Sepherosa Ziehau [EMAIL PROTECTED] wrote:
 Hi,
 
 iwi(4) or ipw(4) users please test following patch:
 http://leaf.dragonflybsd.org/~sephe/drain_mgtq.diff
 
 Apply it under src/sys/dev/netif (HEAD/PREVIEW/1.8)
 
 If no problems pop up  no objection comes, it will be comitted one week 
 later.
 
 Best Regards,
 sephe
 


Re: Native jdk doesn't build

2007-02-12 Thread Francois Tigeot
On Sun, Feb 11, 2007 at 09:53:27AM +0100, Francois Tigeot wrote:
 
 I tried to build a native wip/jdk14.
 
 I used a one year old version of lang/sun-jdk14 as a bootstrap since
 recent version fail with an illegal system call error.
 
 The build failed after 2 hours with these error messages:
 
 Error: failed 
 /usr/obj/pkgsrc/wip/jdk14/work/control/build/bsd-i586/lib/i386/client/libjvm.so,
  because Undefined symbol JNI_CreateJavaVM
 gmake[7]: *** [.compile.classlist] Error 6

[...]

The same issue is reproductible on DragonFly 1.6.2-RELEASE.

Does anyone remember when the last succesfull jdk build happened ?

-- 
Francois Tigeot


Re: Native jdk build issue

2007-02-12 Thread Joerg Sonnenberger
On Sun, Feb 11, 2007 at 09:53:27AM +0100, Francois Tigeot wrote:
 I used a one year old version of lang/sun-jdk14 as a bootstrap since
 recent version fail with an illegal system call error.

This happens due to missing parts in linprocfs.

 The build failed after 2 hours with these error messages:

I suspect issues with gmake-3.81, but haven't had time to trace it down.

Joerg


Re: Native jdk build issue

2007-02-12 Thread Francois Tigeot
On Mon, Feb 12, 2007 at 09:34:17PM +0100, Joerg Sonnenberger wrote:
 On Sun, Feb 11, 2007 at 09:53:27AM +0100, Francois Tigeot wrote:
  I used a one year old version of lang/sun-jdk14 as a bootstrap since
  recent version fail with an illegal system call error.
 
 This happens due to missing parts in linprocfs.

Ok.

  The build failed after 2 hours with these error messages:
 
 I suspect issues with gmake-3.81, but haven't had time to trace it down.

Well, this also happens with gmake-3.80nb5 (used on my
DragonFly 1.6 build).

I have traced the error to this file in the jdk14 source tree:

j2se/src/solaris/bin/java_md.c and

and to this line in particular:

libjvm = dlopen(jvmpath, RTLD_NOW + RTLD_GLOBAL);

The dlopen() call fails; jvmpath is
/usr/obj/pkgsrc/wip/jdk14/work/control/build/bsd-i586/lib/i386/client/libjvm.so
as in the first error message.

-- 
Francois Tigeot


Re: Fix node reference leakage in iwi(4)/ipw(4)

2007-02-12 Thread Sepherosa Ziehau

On 12 Feb 2007 19:09:40 GMT, Johannes Hofmann [EMAIL PROTECTED] wrote:

Hi sephe,

your patch installs and runs nicely on my thinkpad t42 (iwi).


Thank you for testing!


No negative effects so far. What problem is it supposed to fix?


iwi(4)/ipw(4) code assumes that if ieee80211_newstate() (e.g.
iwi_softc.sc_newstate()) is not called with certain IEEE80211_S_, then
mgtq will not be touched, while 802_11 layer does not know that these
two drivers have such an assumption.  This kind of things probably
will bite us in the future ;]

Best Regards,
sephe

--
Live Free or Die


Re: Native jdk doesn't build

2007-02-12 Thread Justin C. Sherrill
On Mon, February 12, 2007 3:25 pm, Francois Tigeot wrote:

 Does anyone remember when the last succesfull jdk build happened ?

http://leaf.dragonflybsd.org/mailarchive/users/2006-07/msg00051.html

The attached binaries in that message may even work.



BSDTalk #98 transcription

2007-02-12 Thread Geoff Speicher
*music* Don't tell anyone I'm free...
*music* Don't tell anyone I'm free...

Commentary: Hello, and welcome to BSDTalk number 98.  It's Wednesday,
February 7, 2007.  I just have an interview with Matthew Dillon
today, so we'll go right to it.

Host: Today on BSDTalk, we're speaking to Matthew Dillon.  Welcome
to the show.

Matt: Thank you.

Host: So, recently there has been a release, so maybe you can start
by giving us a basic overview of what's new in DragonFlyBSD.

Matt: The biggest user-visible item in this release is the virtual
kernel support, which is basically similar to UML (User Mode Linux),
but DragonFly on DragonFly, basically running a DragonFly kernel
as a single process on a DragonFly system.  My primary reason for
doing this first is that it became very obvious that the engineering
cycle time just to test and make changes was going way too slowly
for kernel work, and for the features that we really want to get
in the system, the ultimate goals of DragonFly ---the clustering,
the new filesystem--- we really needed that ability with the virtual
kernel to have an instant run, instant test cycle.

Host: So for people who aren't familiar with the different levels
of virtualization, where do these virtual kernels fit in between
BSD jails versus Xen or QEMU?

Matt: You have a jail-like environment, you have a Xen-like
environment, and you have a QEMU or VMWare-like environment, and
they're different levels of virtualization.

The jail doesn't try to virtualize anything really, it just restricts
what the programs have access to, running on the same system
basically.  It's not really virtualizing a kernel, it's just making
it look that way, kind of faking it.  It still has many uses, because
it's very high performance, because it's not virtualizing anything.

In a Xen-like environment you're running a kernel that's aware of
the Xen environment, so it's not 100% hardware virtualization.  It's
aware that it's in a Xen environment and it makes allowances for
that by doing special calls when it needs to do something with the
VM system, for example, or with drivers.

A VMWare or QEMU virtualization is a full hardware virtualization
where you run the same kernel and system that you would run on bare
harware but you would run it on QEMU or VMWare, and it would just
run---or at least, that's the idea.

Where we come in is closer to Xen than anything else.  The DragonFly
virtual kernel is very aware that it is running as a virtual kernel.
It only runs a real DragonFly kernel, so it's not like Xen where
we're trying to allow or support multiple guest operating systems.
What we're really doing is supporting DragonFly kernel running under
DragonFly kernel, and we're doing that by giving the real kernel
(and the virtual kernel) additional system calls that allow the
manipulation of VM spaces, the interception of system calls, and
that sort of thing.  So the DragonFly virtual kernel isn't actually
doing anything special other than using these new system calls to
manage its own memory space and to manage the virtualized user
processes that are running under it.  The advantage of this is that
the real kernel has very low resource overhead.  The real kernel
is only managing page tables for the virtualized processes being
run by the virtual kernel, and on nearly all BSD systems (certianly
FreeBSD and DragonFly), page tables are all throw-away, which means
that the real kernel can throw them away at any time and take extra
faults to regenerate them later on.  So the resource overhead is
very low except for the memory issue, which is the amount of memory
that you tell the virtual kernel it has.

Host: What about filesystem space?

Matt: Well, the virtual kernel is basically a kernel, so right now
you give it a root image, basically a virtualized hard drive, that's
basically just a 50GB file you give to the virtual kernel and that's
what it uses as a block device for its filesystem.  We've given it
a network interface using the tap device, so the virtual kernel can
communicate with the outside world via the network interface, which
means that of course it can use NFS and any other networking protocol
to also access filesystems.  Eventually we're going to have as part
of the clustering work a protocol called SYSLINK, which will be
used to link the clustered hosts together, and that will also have
the capability of doing a filesystem transport, a device transport,
and transport for other resources such as CPU contexts and VM
contexts and that sort of thing.

Host: Any why develop your own virtual kernel technology instead
of using existing ones, perhaps like Xen or QEMU?

Matt: Well, the problem with QEMU and VMWare is that they aren't
really good for testing kernels.  They're good for running systems.
In many cases they can be higher performing than a virtual kernel,
although theoretically as things mature I think the virtual kernel
technology --that is, the Xen-like technology-- will be able to
exceed that, because 

Re: Native jdk doesn't build

2007-02-12 Thread Yury Tarasievich

It was built on 1.4.4 system, and yes, I'm treasuring the binary
package, as it still works. For how long yet, I wonder?

BTW, I wasn't able to replicate this compiling feat on 1.6--1.7. On
1.4.4, I was able to exploit the similarity-with-freebsd aspect. Not
anymore, and nothing was put in to substitute this, it seems.