On 17-Jul-2006 Alex Zbyslaw wrote:
I was monitoring a machine with systat -vmstat and noticed something
about the interrupts and I don't know if it's a problem or not. If it
is a problem, is there anything I can do about it?
The interrupts for the network interface (em0) on irq 64 exactly
(so*).
What's the easy way to create a basic tcp server
(create/bind/listen/accept/send/recv) : use netgraph's ksocket or so*
?
Thanks in advance !
PS: the whole job must be done in the kernel.
yes it can (and has been) done..
John Polstra did it many years ago.. using netgraph ksockets.
He had
Nicolas Cormier wrote:
Thanks a lot for your answer, a last question why did you not used
so* functions ?
Using ng_ksocket is almost the same as using the so* functions, since
the ksocket methods call the so* functions. But by using netgraph, you
get a nice management interface, too.
Julian Elischer wrote:
I would actually like to address the performance issues.
is there any chance the oldest version (4.x based) might be released,
or at least it would be nice to get the code snippet that attaches to eh
ng_ksocket and
reads and writes the stream..
I could make a TCP ECHO
Julian Elischer wrote:
but if you did find some old ksocket based code sitting around,
i'd love to try it in -current and work on the bottlenecks..
I'm sure I don't have it any more, unfortunately. It was six years old,
and I just moved into a smaller house and threw out a half dozen old
rt
the correct class in the class field. (See passwd(5) for details.)
If you want to create a new class, just edit it into your login.conf
file and then run cap_mkdb as instructed in the comment at the top
of that file.
John
--
John Polstra [EMAIL PROTECTED]
In article [EMAIL PROTECTED],
Archie Cobbs [EMAIL PROTECTED] wrote:
A new, faster event notification system would be great. But don't forget
to include *all* events, not just file descriptor readability/writability.
Yes! Yes! Yes! (I agree.)
John
--
John Polstra
thread. But to take advantage of it, the
application has to have something useful it wants to do (and can do)
in the meantime.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
In article 000101bec73c$e20e3660$[EMAIL PROTECTED],
Kelly Yancey [EMAIL PROTECTED] wrote:
Also, in case it hasn't been notice already (I'm running -stable from May
18th), the mmap(2) manpage has a typo: it has "#include sys/mman.h"
So what's the typo, exactly?
John
--
Jo
Doug wrote:
John Polstra wrote:
Are you sure? If you simply don't run an identd, the queries will
get an instant connection refused error. That's even faster than
sending back a bogus response.
Many daemons that request ident, and almost all IRC daemons
that I'm aware of don't
on character
disk devices. I'm reasonably certain there exists some ioctl (perhaps
related to reading disk labels) which could be used to figure out
whether a character device was a disk or not. A simple fix like that
would make dd a lot more useful for the case Luigi brought up.
John
--
John
;Warm-Fuzzy" .fakeid
Ick. Please, no more abuse of symbolic links! Once (malloc) was
enough.
Data is held in files, not in filenames.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Wash
to install libiberty from one of those places.
Left as an exercise for the reader: Figure out how the two differ
and which one is "better". :-)
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.
Brian F. Feldman wrote:
On Mon, 19 Jul 1999, John Polstra wrote:
Left as an exercise for the reader: Figure out how the two differ
and which one is "better". :-)
I'd rather hurt myself severely.
Of course. That's a prerequisite for becoming a committer. :-)
John
---
Jo
In article [EMAIL PROTECTED],
Oscar Bonilla [EMAIL PROTECTED] wrote:
Couldn't we do this with /etc/auth.conf?
The plan when PAM was brought in was to eliminate auth.conf. I don't
think we should be looking for new uses for it.
John
--
John Polstra
separate but related functions.
We're only using the authentication function currently. For an
overview of PAM, see PAM(8) in the manual pages. There is also a spec
in "src/contrib/libpam/doc/specs/rfc86.0.txt".
John
---
John Polstra [EMAIL
been the traditional behavior
on every Unix system I've ever used that supported -L at all.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matter how cynical I get, I just
ally better get
used to it. It was the wave of the future 10 years ago. It's not
going away. Dynamic linking provides flexibility and modularity that
you just can't get from static linking.
John
--
John Polstra [EMAIL PROTECTED]
John
en't aware of anything special about the names.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matter how cynical I get, I just can't keep up."-- Nora Eph
with a umask of 2
then it would have worked too. It honors the umask setting unless
overridden in the supfile.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matter how cyni
the list is empty, stqh_last points at stqh_first (which means it
must be a pointer to pointer). That way, STAILQ_INSERT_TAIL doesn't
have to treat an empty list as a special case.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc
)
says, "The file should not be locked on entry." But when stat calls
vn_stat, the vnode is locked. Which is correct -- or doesn't it
matter?
Thanks,
John
---
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.
Alfred Perlstein wrote:
On Sun, 15 Aug 1999, John Polstra wrote:
1. I have a pointer to a vnode and I want to get the corresponding
dev_t and inode number. Is there a non-sleazy way to do that other
than calling vn_stat?
use vn_todev from "vfs_subr.c" ~line 2970 of 2976 i
well before the binutils changes that required it. But
still it can bite people who aren't tracking -current very closely.
That's life in currentland.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc
different on
FreeBSD/i386. SIGSEGV means you accessed memory that is unmapped.
SIGBUS means you accessed memory that is mapped, but protected
(unwritable and/or unreadable). To further confuse matters,
FreeBSD/alpha generates SIGSEGV for both cases.
John
--
John Polstra
entirely for a couple of weeks. You're not doing a
thing to help our reputation.
Remember, the _individual_ you are replying to is not personally
responsible for the sum total of annoyances you have endured lately.
John
--
John Polstra [EMAIL PROTECTED
Polstra
CVSup Mirrormeister
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matter how cynical I get, I just can't keep up."-- Nora Ephron
To Unsubscribe: send mail
of the base system. :-)
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matter how cynical I get, I just can't keep up."-- Nora Ephron
To Unsubscribe: send mail
that some interfaces using programmed I/O may require
a considerable time to output packets. So, re- ducing the
granularity too much might actually cause ticks to be missed thus
reducing the accuracy of operation.
John
--
John Polstra [EMAIL
I put a few pictures from FreeBSDCon here for your enjoyment:
http://www.freebsd.org/~jdp/freebsdcon1999/
John
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
to a list like
-hackers generally won't cut it. You need to let me personally know
as soon as possible.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matter how cynical I g
have to ask. Are you sure
you're not simply running out of mbufs? I noticed your maxusers is
only 32 and I didn't see an options line to raise NMBCLUSTERS.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc
of
that one.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matter how cynical I get, I just can't keep up."-- Nora Ephron
To Unsubscribe: send mail
e previous
section.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matter how cynical I get, I just can't keep up."-- Nora Ephron
To Unsubscribe: send mail
vfs.aio.max_aio_queue: 1024
vfs.aio.max_buf_aio: 16
And worst of all:
#define AIO_LISTIO_MAX 16
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matte
as the object file format.
You can test for it at compile time with #ifdef __ELF__.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matter how cynical I get, I just can't ke
, though.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"No matter how cynical I get, I just can't keep up."-- Nora Ephron
To Unsubscribe: send mail to [EMAIL
Garance A Drosihn wrote:
At 10:40 AM -0800 11/18/99, John Polstra wrote:
I don't dispute that point, but it is worth mentioning that POSIX
specifically guarantees that st_dev and st_ino "taken together
uniquely identify the file within the system." So it is OK for
applicatio
small farm of disk I/O
subprocesses (processes, not threads), communicating with the master
process via shared memory and/or pipes. Without trying it, I can't
say for sure whether it will yield a net win or a net loss in speed.
John
--
John Polstra
/O devices and "fast" ones. Disks are "fast" ones, and the process
always blocks until the full I/O has completed.
This is not some kind of brokenness particular to FreeBSD; it's the
way Unix has always behaved.
John
--
John Polstra
anticipate
having to service/maintain at one time.
[... etc]
The "eventlib" package is pretty nice for this style of programming.
It takes care of all these gory details for you. It's part of BIND
(www.isc.org) and it might be distributed separately too -- I forget.
John
--
Jo
separated.
That could be a bug. You're probably the first person on earth to
have more than one library in LD_PRELOAD. :-) What does Linux do?
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Wa
In article [EMAIL PROTECTED],
Tony Finch [EMAIL PROTECTED] wrote:
John Polstra [EMAIL PROTECTED] wrote:
The right way to do it on FreeBSD is like this:
gcc -fpic -c *.c
gcc -shared -o libshim.so *.o
That works fine, thanks! Any idea why my clumsy success worked and why
my clumsy
In article [EMAIL PROTECTED],
Chad David [EMAIL PROTECTED] wrote:
Since the ~Jan 25 I have been getting an error while
running any java programs on 3.4-stable. I cvsup'd,and
ran a make world this afternoon and it still fails. It doesn't
always hit... about 50% of the time.
The errors
In article [EMAIL PROTECTED],
Chad David [EMAIL PROTECTED] wrote:
Yes this fixed it. Thanks.
Thanks for testing it. I have merged the fix into -stable now.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc
.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe: send mail to [EMAIL
not find entry symbol _start; defaulting to 08048074
/tmp/ccWvs216.o: In function `main':
/tmp/ccWvs216.o(.text+0xf): undefined reference to `printf'
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washing
, then it works.
Making it do something useful is _your_ problem, not ours. :-) We
don't recommend or support linking that way.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
then the framework needs to
be fixed. We shouldn't let bugs there influence what we do with the
shell.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good
thm itself is not patented. Is that not the case?
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Un
In article [EMAIL PROTECTED],
Doug Barton [EMAIL PROTECTED] wrote:
Given that Bash in both standard and POSIX mode complains about 'for i
in ; do echo $i; done', I would say that it's not POSIX compatible. What
could/does depend on this behavior "working?"
It works for the realistic
Doug Barton wrote:
Agreed on all counts. By "this behavior" I was referring to the
example.
Yep -- I was agreeing with you. :-)
John
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
me and I'll try to
figure out what's happening.
After you're done, you should restore your original (non-debugging)
rtld. It's more efficient and also probably more secure.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.
? That way I won't forget about it. If you'll include
some patches in the PR it will help a lot, too. :-)
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a
in itself isn't sufficient. We
can still call the kld svr4.ko, but it's really doing SCO/SolarisX86
syscall emulation.
Yep.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"
Just a note to let you know that cvsup7.freebsd.org is back in
service.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelli
a very nice setup which uses SNMP to query the number of active
CVSup clients on each mirror. They don't do automatic load balancing
with it currently, but they make some nice graphs available on the web
for people to use. (Sorry, I don't remember the URL.)
John
--
John Polstra
-contained test case that
shows a bug in this, I'll be happy to take a look at it.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of bas
be GREAT for cd recording on IDE CD-RW (one will be able to
use cdrdao and cdrecord instead of burncd)
Yes! It would definitely be nice if cdrecord worked with ATAPI
CD-RW drives on FreeBSD.
John, who just bought an ATAPI CD-RW drive
--
John Polstra
In article [EMAIL PROTECTED],
Alfred Perlstein [EMAIL PROTECTED] wrote:
I can't seem to get a crashdump, is there a way to take a
ddb crash address: "Stopped at lf_setlock+0x52"
and boot later and see what line of code that's on?
Assuming you have a corresponding kernel with debugging
failed: Read failure from /usr/sup/ports-all/checkouts.cvs: Input/output
error
This is an I/O error happening on your own system when cvsup is trying
to read the file mentioned in the message.
John
--
John Polstra [EMAIL PROTECTED]
John D
to
error. The proper way is to ``cvs add'' them in a directory checked out
on the branch.
I agree, that's the proper way to do it. The net effect is the same:
it adds the RELENG_4 tag to the files.
John
--
John Polstra [EMAIL PROTECTED]
John D
CONTENTS, READONLY
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
Disappointment is a good sign of basic intelligence. -- Chögyam Trungpa
To Unsubscribe: send mail
h to support it.
See the other examples in sys/cdefs.h. It would be used like
this:
extern void *isp_static_fw_vector(void) __weak_definition;
#pragma weak is bad because you can't put #pragmas into macros.
John
--
John Polstra [EMAIL PROTECTE
== curproc) in this example, and
that it would be better to code with p than with curproc.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of
it with
./sigill
On an 80386 it should print out
This CPU does not support the cmpxchg instruction
Thanks in advance!
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappoin
Robert Muir wrote:
yes, it prints:
This CPU does not support the cmpxchg instruction
Thanks!
John
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
I _thought_ I was an expert in gcc's extended asm feature, but I
can't figure out why this won't compile when optmization is
disabled:
===
#define xchgl(v, m) ({ \
int __result;
In article [EMAIL PROTECTED],
Peter Wemm [EMAIL PROTECTED] wrote:
If I change it to use a static inline function, it seems to work and
will generate identical code (with -O):
Thanks! I'll give that a try in both places where I'm having this
problem.
It appears to generate valid code
and commit it.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe:
and if the dir has not world write permission.
That sounds OK to me. But it should be in a separate patch from the
other changes you proposed.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle
d remove the line containing "cvs-crypto".
- Delete the symbolic link "prefixes/FreeBSD-crypto.cvs".
That's all you need to do.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seatt
to reproduce the problem?
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe:
es the a.out
problem, they affect programs run under Linux emulation too.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intellige
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe: send mail to [EMAIL PROTECTED]
with &q
In article [EMAIL PROTECTED],
Alex Zepeda [EMAIL PROTECTED] wrote:
On Mon, 24 Jul 2000, John Polstra wrote:
FreeBSD ELF: It's required by the ELF specification.
FreeBSD a.out: Backward compatibility.
Linux ELF: Because it's part of Linux and that's just what it does
.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe: send mail to [EMAIL
onds boundary. I hope current
versions of CVS force the dates to be the same on an import. I
haven't checked to see whether that's the case or not.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Wa
st of what is and isnt defined by default... help!
From 4.1-STABLE:
jedgar@wopr:~$ cpp -v
That's the wrong way to do it because cpp behaves differently than cc.
Another poster gave the right answer: "gcc -E -dM - /dev/null".
Joh
Preprocessor Options and you'll
find out how to get all sorts of useful information from the compiler.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good s
uld probably create a 0-length
temporary file somewhere and use the flock(2) system call on it. The
file itself isn't important; it's just something to lock.
Or you could use semop(2) on semaphores. But that's the SYSV way, not
the BSD way.
John
--
John Polstra
l 7,0" to the faster "int $0x80". BSD/OS doesn't support
the latter, apparently.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good s
dea. It's only a 1-second difference. I've done that now.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence."
In article [EMAIL PROTECTED], Jonas Bulow
[EMAIL PROTECTED] wrote:
John Polstra wrote:
I think the ideal solution would first try to lock the
test-and-set lock, maybe spinning on it just a few times. If that
failed it would fall back to using a system-call lock such as
flock() which
their priorities
are.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe: send mail
In article [EMAIL PROTECTED],
Jonas Bulow [EMAIL PROTECTED] wrote:
John Polstra wrote:
If you want the "BSD way" you should probably create a 0-length
temporary file somewhere and use the flock(2) system call on it. The
file itself isn't important; it's just something to lock.
ry to figure out what's going
wrong.
If a thread stack is overflowing, it is probably caused by a corrupted
file. However, I would prefer that you let me analyze the problem
before you try to correct it by removing files, since it's a bug if
cvsup dumps core beca
In article [EMAIL PROTECTED],
Wilko Bulte [EMAIL PROTECTED] wrote:
On Tue, Sep 12, 2000 at 12:51:15PM -0700, John Polstra wrote:
Illegal instruction faults may indicate that a thread stack
overflowed, or they might be symptomatic of HW or kernel problems.
Or an executable built
are using the "-s" option on the cvsup command line, but
you have modified a file locally, or
- One of your "checkouts.*" files (most likely the "ports-base"
one) is corrupted.
John
--
John Polstra [EMAIL PR
, then I get the diagnostic.
Is this the standard compiler installation, or are you using the ports
version? If it's the ports version, maybe it has an incorrect notion
of where the system headers are. I ran my tests using the standard
FreeBSD compiler installation.
John
--
John Polstra
to
remove it.
From netinet/in.h it looks like a couple of [gs]etsockopt calls
use it. Search for "ip_opts" just past that structure declaration.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Sea
In article [EMAIL PROTECTED],
Archie Cobbs [EMAIL PROTECTED] wrote:
John Polstra writes:
On the other hand, nothing in the kernel actually uses "struct ip_opts",
though I haven't checked all of userland.. so we may just be able to
remove it.
From netinet/in.h it
kludge_city)(void) = terminate;
Another possibility would be to link explicitly with libgcc when
creating your dynamic library:
cc -shared -o libphptest.so ... -lgcc
That might cause other problems, but probably not.
John
--
John Polstra [EMAI
ing case.
As per the PR, I'm against #ifdef'ing structures like ip_opts for C++,
since it is likely that a later C++ standard will be corrected.
I can't argue with that. I don't like my "solution" very much either.
:-)
John
--
John Polstra
you told me.)
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe:
on support uses more stuff from libgcc, so
you're more likely to run into an undefined symbol if libgcc is not
shared. Probably a bogus point for this discussion.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.
s any more.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe: send mail
it then.
John
--
John Polstra [EMAIL PROTECTED]
John D. Polstra Co., Inc.Seattle, Washington USA
"Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa
To Unsubscribe: send mail to [EMAIL
c implies the entire enchilada is linked static, which
may not be the case. :(
Then you can sprinkle in the appropriate "-Wl,-Bstatic" and
"-Wl,-Bdynamic" options in the right places.
John
--
John Polstra [EMAI
In article [EMAIL PROTECTED],
Max Khon [EMAIL PROTECTED] wrote:
`__register_frame_info' should be called from `do_ctors' in
src/lib/csu/common/crtbegin.c to load frame information from .eh_frame
sections before any constructors are executed because try/catch can be
used in constructors of
1 - 100 of 237 matches
Mail list logo