This might not exactly be what you want, but struct kevent has a member called
data which, for sockets and pipes, returns the number of available bytes to
read (or write) for EVFILT_READ (or EVFILT_READ) events.
--
Good, fast and cheap: pick any two.
On Saturday, April 7, 2012 at 10:16 PM,
On Thu, Feb 23, 2012 at 2:41 PM, Damien Fleuriot m...@my.gd wrote:
On 2/23/12 2:22 PM, John Baldwin wrote:
On Wednesday, February 22, 2012 9:59:02 pm Doug Barton wrote:
On 02/22/2012 01:42, Ivan Voras wrote:
The Dragonfly team has recently liberated their VM from the giant lock
and
On Aug 2, 2011, at 11:16 PM, Jilles Tjoelker wrote:
On Mon, Aug 01, 2011 at 08:11:04AM +0200, Vlad Galu wrote:
On Jul 31, 2011, at 9:59 PM, Bernard van Gastel wrote:
I want to reduce the number of syscalls for my networking
application. The app handles incoming connections with the
'accept
On Jul 31, 2011, at 9:59 PM, Bernard van Gastel wrote:
Hi all,
I want to reduce the number of syscalls for my networking application. The
app handles incoming connections with the 'accept()' system call. Is there a
way to specify to accept() that the newly created file descriptors should
Hello,
A couple of years ago, Stef Walter proposed a patch[1] that enforced the scope
of routing messages. The general consesus was that the best approach would be
the OpenBSD way - transporting the FIB number in the message and letting the
user applications filter out unwanted messages.
Are
On Jul 16, 2011, at 5:42 PM, Hiroki Sato wrote:
Vlad Galu d...@dudu.ro wrote
in a718adb2-ec52-462c-a114-85053f1b2...@dudu.ro:
du Hello,
du
du A couple of years ago, Stef Walter proposed a patch[1] that enforced
du the scope of routing messages. The general consesus was that the best
du
On Sun, Mar 6, 2011 at 6:53 AM, Eric Anderson ander...@ttel.com wrote:
On Mar 5, 2011, at 10:44 AM, Deomid Ryabkov wrote:
On 03/05/2011 04:02 AM, Eric Anderson wrote:
Hi all,
I have a moderately threaded userland program (all C) I am working on
(using pthreads, freebsd 8.1 64bit). It
On Sun, Mar 6, 2011 at 2:06 PM, Vlad Galu d...@dudu.ro wrote:
On Sun, Mar 6, 2011 at 6:53 AM, Eric Anderson ander...@ttel.com wrote:
On Mar 5, 2011, at 10:44 AM, Deomid Ryabkov wrote:
On 03/05/2011 04:02 AM, Eric Anderson wrote:
Hi all,
I have a moderately threaded userland program
On Sat, Feb 12, 2011 at 12:28 PM, Da Rock
freebsd-hack...@herveybayaustralia.com.au wrote:
On 02/12/11 19:39, Gary Jennejohn wrote:
On Fri, 11 Feb 2011 17:19:17 -0800
Julian Elischerjul...@freebsd.org wrote:
On 2/11/11 4:03 PM, Da Rock wrote:
Unfortunately this software uses this
On Fri, Feb 11, 2011 at 9:22 AM, Da Rock
freebsd-hack...@herveybayaustralia.com.au wrote:
In recent versions of the Linux kernel (post-2.0 releases) a new protocol
family has been introduced, named PF_PACKET. This family allows an
application to send and receive packets dealing directly with
On Fri, Feb 11, 2011 at 11:36 AM, Da Rock
freebsd-hack...@herveybayaustralia.com.au wrote:
On 02/11/11 18:17, Julian Elischer wrote:
On 2/10/11 11:22 PM, Da Rock wrote:
In recent versions of the Linux kernel (post-2.0 releases) a new
protocol family has been introduced, named PF_PACKET.
On Thu, Apr 1, 2010 at 6:27 PM, Oliver Fromme o...@lurza.secnetix.de wrote:
Mario Lobo l...@bsd.com.br wrote:
[...]
It's compiling right now.
I'll post my findings and impressions on results and performance right
after
the next reboot.
So, how is it going? Any benchmarks yet?
On Sat, Dec 19, 2009 at 10:40 AM, Roman Divacky rdiva...@freebsd.org wrote:
On Sat, Dec 19, 2009 at 09:28:55AM +0200, Vlad Galu wrote:
Hi,
as per http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36612, could one
please apply the following patch?
the patch in question seems to be GPLv3, we cant
Hi,
as per http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36612, could one
please apply the following patch?
-- cut here --
--- /usr/include/c++/4.2/ext/pb_ds/exception.hpp2008-04-05
14:15:32.0 +0300
+++ /mnt/store/jails/dudu/usr/include/c++/4.2/ext/pb_ds/exception.hpp
2009-12-19
On Mon, Nov 30, 2009 at 5:01 PM, xorquew...@googlemail.com wrote:
On 2009-11-30 15:43:01, Ivan Voras wrote:
xorquew...@googlemail.com wrote:
76030 initial thread STRU struct sockaddr { AF_LOCAL,
/tmp/jack-11001/default/jack_0 }
76030 initial thread NAMI /tmp/jack-11001/default/jack_0
On Thu, Oct 22, 2009 at 11:08 PM, Andrew Gallatin galla...@cs.duke.edu wrote:
Hi,
We're designing some software which has to lock access to
shared memory pages between several processes, and has to
run on Linux, Solaris, and FreeBSD. We were planning to
have the lock be a pthread_mutex_t
On Thu, Oct 8, 2009 at 1:02 PM, Kostik Belousov kostik...@gmail.com wrote:
On Thu, Oct 08, 2009 at 11:53:21AM +1100, Stephen Hocking wrote:
Hi all,
In my efforts to make the xrdp port more robust under FreeBSD, I have
discovered that sigwait (kind of an analogue to select(2), but for
signals
On Mon, Oct 6, 2008 at 5:33 PM, Evren Yurtesen [EMAIL PROTECTED] wrote:
Bob Bishop wrote:
Does anybody have free time and skills to give a hand? Please see:
http://forum.r1soft.com/showpost.php?p=3414postcount=9
Should be possible to do this with a geom(4) class?
I am not saying it is
Hello list, I didn't have a clue where else to post this so I
figured this place was the right one. I also CCed Alex Kabaev, who did
the gcc 4 import.
I'd like to use a Patricia container in the new libstdc++. The issue
is that /usr/include/c++/4.2/ext/pb_ds/assoc_container.hpp has two
On 6/16/08, Alexander Kabaev [EMAIL PROTECTED] wrote:
On Mon, 16 Jun 2008 16:58:10 +0300
Vlad GALU [EMAIL PROTECTED] wrote:
Hello list, I didn't have a clue where else to post this so I
figured this place was the right one. I also CCed Alex Kabaev, who did
the gcc 4 import.
I'd
On 3/8/08, Vlad GALU [EMAIL PROTECTED] wrote:
On 3/8/08, Robert Watson [EMAIL PROTECTED] wrote:
On Fri, 7 Mar 2008, Vlad GALU wrote:
I see an unusual symptom with one of our in-house applications. The main
I/O
loop calls kevent(), which in turn returns two events with EV_EOF
On 3/14/08, Vlad GALU [EMAIL PROTECTED] wrote:
On 3/8/08, Vlad GALU [EMAIL PROTECTED] wrote:
On 3/8/08, Robert Watson [EMAIL PROTECTED] wrote:
On Fri, 7 Mar 2008, Vlad GALU wrote:
I see an unusual symptom with one of our in-house applications. The
main I/O
loop
On 3/14/08, Dan Nelson [EMAIL PROTECTED] wrote:
In the last episode (Mar 14), Vlad GALU said:
On 3/14/08, Vlad GALU [EMAIL PROTECTED] wrote:
On 3/8/08, Vlad GALU [EMAIL PROTECTED] wrote:
On 3/8/08, Robert Watson [EMAIL PROTECTED] wrote:
On Fri, 7 Mar 2008, Vlad GALU wrote
On 3/8/08, Robert Watson [EMAIL PROTECTED] wrote:
On Fri, 7 Mar 2008, Vlad GALU wrote:
I see an unusual symptom with one of our in-house applications. The main I/O
loop calls kevent(), which in turn returns two events with EV_EOF error
set,
always for the same descriptors (they're
I see an unusual symptom with one of our in-house applications. The
main I/O loop calls kevent(), which in turn returns two events with
EV_EOF error set, always for the same descriptors (they're both socket
descriptors). As the man page is not pretty clear about it and I don't
have my UNP copy
On 3/7/08, Julian Elischer [EMAIL PROTECTED] wrote:
Vlad GALU wrote:
I see an unusual symptom with one of our in-house applications. The
main I/O loop calls kevent(), which in turn returns two events with
EV_EOF error set, always for the same descriptors (they're both socket
On 3/7/08, Julian Elischer [EMAIL PROTECTED] wrote:
Vlad GALU wrote:
On 3/7/08, Julian Elischer [EMAIL PROTECTED] wrote:
Vlad GALU wrote:
I see an unusual symptom with one of our in-house applications. The
main I/O loop calls kevent(), which in turn returns two events
On 2/7/08, Biks N [EMAIL PROTECTED] wrote:
Hi,
I am new to FreeBSD kernel programming.
Currently I am trying to work on mbuf data manupulation.
From my understanding: data (payload) is stored into one or more mufs
which are chained together through m_next pointer.
Now, I need to retrive
On 1/22/08, Stefan Lambrev [EMAIL PROTECTED] wrote:
Greetings,
I noticed that hping3 (from ports) is quite slower when running on
FreeBSD compared to Linux.
Simple ktrace shows lot of gettimeofday() calls, so I'm looking for
replacement of this function.
I tried clock_gettime() (using
On 12/6/07, Sonja Milicic [EMAIL PROTECTED] wrote:
Hi everyone.
I'm working on a kernel module that needs to maintain a large structure
in memory. As this structure could grow too big to be stored in memory,
it would be good to offload parts of it to the disk. What would be the
best way to
On 10/4/07, Giorgos Keramidas [EMAIL PROTECTED] wrote:
On 2007-10-02 15:41, Vlad GALU [EMAIL PROTECTED] wrote:
On 10/2/07, Dag-Erling Sm?rgrav [EMAIL PROTECTED] wrote:
Vlad GALU [EMAIL PROTECTED] writes:
The symptoms were exhibited even with rev. 1.16. I've CC'ed him so
he can catch
On 10/2/07, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote:
Vlad GALU [EMAIL PROTECTED] writes:
Dag-Erling Smørgrav [EMAIL PROTECTED] writes:
Alternatively, set kern.pts.enable to 1, and find and fix the
hang-on-close bug in the pts code (if it hasn't been fixed already)
Looks like
On 10/2/07, Vlad GALU [EMAIL PROTECTED] wrote:
On 10/2/07, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote:
Vlad GALU [EMAIL PROTECTED] writes:
Dag-Erling Smørgrav [EMAIL PROTECTED] writes:
Alternatively, set kern.pts.enable to 1, and find and fix the
hang-on-close bug in the pts code
On 10/2/07, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote:
Steven Hartland [EMAIL PROTECTED] writes:
Any one got any pointers on this, the machine we running this app on is over
90% idle so I really don't want to have to install a second machine just to
workaround a limit on the number of
On 10/2/07, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote:
Vlad GALU [EMAIL PROTECTED] writes:
The symptoms were exhibited even with rev. 1.16. I've CC'ed him so
he can catch up with the thread.
Which symptoms? I can no longer reproduce the hang-on-close bug.
Strangely enough, me neither
On 10/2/07, Vlad GALU [EMAIL PROTECTED] wrote:
On 10/2/07, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote:
Vlad GALU [EMAIL PROTECTED] writes:
The symptoms were exhibited even with rev. 1.16. I've CC'ed him so
he can catch up with the thread.
Which symptoms? I can no longer reproduce
On 10/2/07, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote:
Vlad GALU [EMAIL PROTECTED] writes:
Dag-Erling Smørgrav [EMAIL PROTECTED] writes:
Vlad GALU [EMAIL PROTECTED] writes:
The symptoms were exhibited even with rev. 1.16. I've CC'ed him so
he can catch up with the thread.
Which
I couldn't help noticing that our gdb lags behind other BSDs. Is
there a technical reason for this? I'm thinking threading changes/gcc
changes (although I can't remember this kind of situation representing
a setback in other BSDs' case).
Thanks.
--
If it's there, and you can see it, it's
On 5/7/07, valiy [EMAIL PROTECTED] wrote:
[...]
It might be related to phkmalloc vs jemalloc. You may want to try
to link against jemalloc to see if the slowdown still occurs.
--
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there,
On 5/7/07, valiy [EMAIL PROTECTED] wrote:
Vlad GALU wrote:
On 5/7/07, valiy [EMAIL PROTECTED] wrote:
[...]
It might be related to phkmalloc vs jemalloc. You may want to try
to link against jemalloc to see if the slowdown still occurs.
http://lists.freebsd.org/pipermail/freebsd-stable
On 3/10/07, Kip Macy [EMAIL PROTECTED] wrote:
umtx
Is it safe/recommended to use spinlocks, like in jemalloc, for very
small portions of code? I'm particularly interested in protecting
writes to a couple of word sized ints on amd64, so the critical
section wouldn't be longer than two
On 2/6/07, Andrew N. Below [EMAIL PROTECTED] wrote:
Hello.
Could 0 (zero) be a valid socket descriptor?
Yes, if your program is a daemon and closes fds 0, 1, 2 which
corespond to stdin, stdout and stderr.
man 2 socket:
RETURN VALUES
A -1 is returned if an error occurs, otherwise
On 11/23/06, Ivan Voras [EMAIL PROTECTED] wrote:
Vlad Galu wrote:
It seems to me you would have to propagate that info along the
VOP_WRITE_POST-VFS_KNOTE_LOCKED-VN_KNOTE-knote() chain. Since
knote() is generic and is used for all types of notifications, you can
probably roll down your own
On 11/23/06, Ivan Voras [EMAIL PROTECTED] wrote:
Vlad Galu wrote:
My guess is that it won't be remarcably high. However, you can
create those files, add them to your notification list and randomly
write bytes to them, to see how your system performs. One more
suggestion, I think it would
On 11/22/06, Ivan Voras [EMAIL PROTECTED] wrote:
From the kqueue(2) manual:
EVFILT_VNODE Takes a file descriptor as the identifier and the events
to watch for in fflags, and returns when one or more of
the requested events occurs on the
On 3/31/06, Marko Lerota [EMAIL PROTECTED] wrote:
Ian G [EMAIL PROTECTED] writes:
In terms of cross-border payments, this is always
difficult. You might want to look at one of the
cross-border specialists like Kagi.com or
moneybookers.com or the digital gold currencies.
OK, thanks.
On 3/31/06, Colin Percival [EMAIL PROTECTED] wrote:
Vlad GALU wrote:
Bank orders should be just fine, assuming Colin tells us his IBAN
account number and SWIFT code.
I wish I could. Sadly, while Canadian banks are very good at handling
payments to/from the US, they aren't very good
Dear hackers, I'm in a dilemma (more like a trilemma,
actually). While following the 5.x and 6.x development cycle I
observed that the default timecounter varies from one machine from
another (for instance on my home desktop which is an AMD Athlon 2400+
it uses ACPI-fast, whereas on my
On 2/24/06, Martin Möller [EMAIL PROTECTED] wrote:
Hi all,
I try to copy some files securely from one machine to another. What is
the fastest and easiest way to accomplish this task? Can I access SSH
routines in C (is there a library) or is it better just to call scp
externally?
On 12/17/05, Seán C. Farley [EMAIL PROTECTED] wrote:
I may have missed it in the man page, but I am unable to find a way to
determine how many kevents are currently registered within a kqueue. If
there is no method for a count, how about a way to find if a kqueue is
empty or not. Besides
On 12/1/05, Alin-Adrian Anton [EMAIL PROTECTED] wrote:
Dear Hackers,
I would like to monitor the changes of cwnd and sstresh values during
TCP traffic, in order to plot graphs and interpret congestion.
So I need (cwnd, timestamp) and (sstresh, timestamp) records to be
taken
On 9/1/05, Vladimir Yu. Stepanov [EMAIL PROTECTED] wrote:
[snip]
You can always control which traffic to sniff (ingress/egress)
using layer 2 filters (ether src/dst host ).
--
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there,
On 8/10/05, Sergey Uvarov [EMAIL PROTECTED] wrote:
Hello hackers,
I'm writing a kernel module for my own needs. AFAIK the following
methods could be used:
1) allocate not used system call with help of SYSCALL_MODULE macro
1 syscall
2) allocate proprieatry oid via
On 7/13/05, Jone Jas [EMAIL PROTECTED] wrote:
Alex Lyashkov [EMAIL PROTECTED] 写道:
В Срд, 13.07.2005, в 06:42, Jone Jas пишет:
Alex Lyashkov 写道:
В Втр, 12.07.2005, в 16:03, Vlad GALU пишет:
On 7/12/05, Jone Jas wrote:
Thanks for your reply. I googled and found this method but
I
On 7/12/05, Jone Jas [EMAIL PROTECTED] wrote:
Thanks for your reply. I googled and found this method but I just
did not have a try.
As for the code-hacking method I mentioned, anyone with any idea
is appreciated!
snip
See ufs_quota.c, especially chkdqchg(). It is passed a struct
ucred*
On Wed, 02 Feb 2005 17:00:22 +0300, Deomid Ryabkov [EMAIL PROTECTED] wrote:
Milan Obuch wrote:
This could be a custom filesystem wrapper for UFS that would report
name of the file/directory being changed.
Couldn't you use kqueue system to monitor the directory-file?
I could, if I
On Tue, 14 Dec 2004 09:55:21 +, Chris Elsworth [EMAIL PROTECTED] wrote:
On Tue, Dec 14, 2004 at 12:33:45PM +0300, scream wrote:
Hello freebsd-hackers,
I`m trying to solve this puzzle how to get statistics about total count
of
fork`ed\exec`ed processes since the server been
On Tue, 14 Dec 2004 09:23:46 -0600, Dan Nelson [EMAIL PROTECTED] wrote:
In the last episode (Dec 14), Vlad GALU said:
On Tue, 14 Dec 2004 09:55:21 +, Chris Elsworth [EMAIL PROTECTED]
wrote:
On Tue, Dec 14, 2004 at 12:33:45PM +0300, scream wrote:
I`m trying to solve this puzzle
On Tue, 14 Dec 2004 12:33:45 +0300, scream [EMAIL PROTECTED] wrote:
Hello freebsd-hackers,
I`m trying to solve this puzzle how to get statistics about total count of
fork`ed\exec`ed processes since the server been rebooted and even
make some RRD-like graphs.I need it
Maybe add
Saber ZRELLI [EMAIL PROTECTED] writes:
|Hello Dear Seniors ,
|i was looking for some interesting issue related to FreeBSD networking
|, to make it my master thesis , but i couldn't find such a topic ,
|certainly because i'm not a FreeBSD expert ( but i will be =) ) ,
|so could any member here ,
Hi there. I've been writing a KLD which contains a control syscall. I
then use the macro SYSCALL_MODULE with the desired parameters. Normally,
my syscall would automatically get the next free syscall number. But it
seems I've done something wrong, because I get negative numbers all the
I'd like to buy a book about FreeBSD kernel internals: data structures,
VM layout, reasons for various implementations, sort of a traver through
the sourcecode, along with explaining each design decision that has been
taken. I'm interested of improving both my personal experience and my
On Sun, 11 Apr 2004, Lev Walkin wrote:
Vlad GALU wrote:
Hello. I have the following scenario: one process that creates a
message queue and goes through it in a loop, together with another process
that inserts various messages into the queue. What I wish is for the
'listening' process
Hello. I have the following scenario: one process that creates a
message queue and goes through it in a loop, together with another process
that inserts various messages into the queue. What I wish is for the
'listening' process to be able to fully process the queue at a fixed
amount of
I understand that in order to add a new route to the routing
table, one must fill a buffer with an ifa_msghdr header, followed by three
socked adddress structures, representing the destination net/ip, the
netmask and the gateway.
While reading route(4) I encountered this:
Is there any way to do that without affecting anything ? I'd like to
remove that information. Some people might find it interesting ...
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's
Nate Grey [EMAIL PROTECTED] writes:
|Hello,
|
|I'm trying to write a little program which retrieve the value 'sysctl
|hw.acpi.thermal.tz0.temperature', I want to write it in C, through
|sys/sysctl.h, but I'm a newbie C coder, so can anyone show me how to
|assign to a var the value stored in that
Before grepping through the kernel sources, I thought to ask you guys
if you knew any papers regarding kernel space functions, especially
memory handling ones.
Thanks in advance for any useful links.
If it's there, and you can see it, it's real.
If it's not there, and you
Ganbold [EMAIL PROTECTED] writes:
|Hi,
|
|I need to view the traffic utilization of dummynet pipes in ipfw2. I'm
|using FreeBSD 5.2 current.
|I'm also using MRTG to draw graphics from ipfw show rule-number
|command. Is there any method or program like MRTG to draw bandwidth
|utilizations of
Jose Kulalapnot [EMAIL PROTECTED] writes:
|my system is running 5.1 and i installed the latest
|ymessenger from the ports. when i run it i get this
|message:
|
|/usr/libexec/ld-elf.so.1: Shared object libintl.so.4
Reinstall gettext and everything that depends on it from scratch.
|not
Vlad Galu [EMAIL PROTECTED] writes:
|Jose Kulalapnot [EMAIL PROTECTED] writes:
|
||my system is running 5.1 and i installed the latest
||ymessenger from the ports. when i run it i get this
||message:
||
||/usr/libexec/ld-elf.so.1: Shared object libintl.so.4
|
| Reinstall gettext
Jose Kulalapnot [EMAIL PROTECTED] writes:
|tnx Vlad. im now running ymessenger. my id is
|buttmanizer. add me if u want.
|
I would, but your ID sounds scary :)
|
|
| --- Vlad Galu [EMAIL PROTECTED] wrote: Vlad
|Galu [EMAIL PROTECTED] writes:
|
| |Jose Kulalapnot [EMAIL PROTECTED] writes
.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]
- --
Vlad Galu
Network Systems Administrator
Romania Data Systems NOC in Bucharest
Phone: +40 21 30 10 850
Web:http://www.rdsnet.ro
PGP
]
--
Vlad GALU
Network Administrator VipNET Bucharest
tel: 021/3039940
email: [EMAIL PROTECTED]
web: http://www.vipnet.ro
PGP: http://mirapoint.vipnet.ro/public_key.pgp
pgp0.pgp
Description: PGP signature
://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to
[EMAIL PROTECTED]
--
Vlad GALU
Network Administrator VipNET Bucharest
tel: 021/3039940
email: [EMAIL PROTECTED]
web: http://www.vipnet.ro
PGP: http://mirapoint.vipnet.ro/public_key.pgp
pgp0.pgp
Description
-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to
[EMAIL PROTECTED]
--
Vlad GALU - aka mira- :
Network Administrator VipNET Bucharest
tel: 021/3039940
email: [EMAIL PROTECTED]
web: http
76 matches
Mail list logo