Search results

  1. V

    [C++] No notifications from kqueue (async connect )

    Thanks. But looping will not be an option. Not efficient. We have to support 10K connected clients and the traffic might be quite heavy... The product is a real-time financial application where even milliseconds of latency can result in big losses.
  2. V

    [C++] No notifications from kqueue (async connect )

    When I'm unconditionally polling for EVFILT_WRITE my load testing prototype spends around 1% of the whole time in my code, the rest is spent in kevent, recv, send. These stats are based on the profiling results from callgrind and gprof. top shows the same stats: around 1% in user mode. I...
  3. V

    [C++] No notifications from kqueue (async connect )

    Let's assume that I call send too many times or with too much data, and I fill in the send buffer. In the current design once I receive EAGAIN because of the full send buffer, I just wait for a kqueue notification which tells me that I now have some available space in the send buffer and then I...
  4. V

    [C++] No notifications from kqueue (async connect )

    Thank you. The reason for subscribing for EVFILT_READ events was that I wanted to receive read notifications as well. Re libevent, we looked at it but decided to implement this by ourselves.
  5. V

    [C++] No notifications from kqueue (async connect )

    I also stopped using aio_* functions and switched to simple non-blocking sockets and kqueue notifications. This is better from performance point of view, IMHO.
  6. V

    [C++] No notifications from kqueue (async connect )

    I solved the problem. The error was in the below line: const short filter = EVFILT_READ | EVFILT_WRITE | EVFILT_AIO; You have to register an event for EVFILT_READ, for EVFILT_WRITE and for EVFILT_AIO (which I stopped using anyway) separately: struct kevent kev; EV_SET(&kev, socket_handle...
  7. V

    Argue: FreeBSD over Ubuntu

    As I said in my post: At my company we, for example, run Asp.Net MVC4 apps on MS Windows Server 2008R2/2012 (on IIS, using Nginx on FreeBSD as frontend) because we believe that Microsoft has better native support for such apps than Mono. Everything depends on what's the purpose of server. What...
  8. V

    Argue: FreeBSD over Ubuntu

    I'm a huge advocate for FreeBSD and my answer will always be "FreeBSD is the best". But the balanced view would be that the answer depends on what services your server will be running. If it is a firewall, then definitely FreeBSD. At my company we run everything on FreeBSD but we had, for...
  9. V

    [C++] No notifications from kqueue (async connect )

    Does kqueue support notifications from asynchronous connect? Has anyone had any practical experience in using kqueue to get notifications from asynchronous connect? Is it possible? Should it work? I've googled the whole Internet and didn't find any example of using kqueue for connect. We...
  10. V

    Upgrade gcc4.2 to gcc4.8

    I haven't applied any changes to this file and it still links correctly on my machine. Maybe because of the below line? export LD_LIBRARY_PATH=/usr/local/lib/gcc48:${LD_LIBRARY_PATH}
  11. V

    10.0 Release

    There was a post on this forum few days with a link to the 10.0 status page. I cannot find it now. But I do remember that it is due in November, if not October. Usually the release dates slide by one-two months, so I would expect 10.0 to be released in Dec 2013/Jan 2014. UPDATE...
  12. V

    What language to teach my girlfriend's daughter

    I would go for C++ or C#. It's probably better to start with C# as it is easier to learn.
  13. V

    Upgrade gcc4.2 to gcc4.8

    I'll share my experience with gcc48. I'm not using it to compile ports or kernel/world because it is not officially supported and I'm not looking for trouble. However, at my company we develop cross-platform applications for Windows/Linux/Unix and we use FreeBSD 9.1 as our Unix testing...
  14. V

    [C++] No notifications from kqueue (async connect )

    Hi all, A few days ago I faced a big problem and could not solve it since then. I'll need your help and advice on this. I'm working with asynchronous sockets and using kqueue as notification mechanism. I have no problems with asynchronously accepting new connections (on the server side) and...
  15. V

    Favorite programming language

    C++ followed by C#.
  16. V

    HOWTO: Install Wordpress 3.x + Nginx + MySQL 5.5

    Yes, you need root privileges.
  17. V

    Cannot Boot EC2 Instance

    Strange... I have few machines with the auto-attached EBS volumes. Haven't had any problem with them.
  18. V

    Where is "ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9.1-release" ?

    From http://www.freebsd.org/releases/9.1R/announce.html#availability:
  19. V

    HOWTO: 9.1-RELEASE setup from scratch (Basic tools, ZFS, NFS, Qjails, and more)

    A real fix will be committed to the port soon.
  20. V

    HOWTO: 9.1-RELEASE setup from scratch (Basic tools, ZFS, NFS, Qjails, and more)

    Try removing these files in /usr/ports/ports-mgmt/pkg and rebuilding again: files/patch-libpkg__Makefile files/patch-pkg__Makefile Do make clean before you rebuild the port.
Back
Top