From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 7 20:22:15 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 70556C89 for ; Thu, 7 Feb 2013 20:22:15 +0000 (UTC) (envelope-from garym@oedata.com) Received: from mail-qc0-f176.google.com (mail-qc0-f176.google.com [209.85.216.176]) by mx1.freebsd.org (Postfix) with ESMTP id 13A10B53 for ; Thu, 7 Feb 2013 20:22:14 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id n41so1135505qco.21 for ; Thu, 07 Feb 2013 12:22:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=+xjuZSTyxx9LT7i5qUA3rTRTVfv72SevqEa2PRgA11Q=; b=YRz3hAsswm4N16SfQN/ce2gqyyjlPMPLP6nERy5rZd71M6+cwgwlcGxSYpvQmQHG7I FLf3pt4UAUSQhJ+7NivkGtzzzbo3YYC6VfjnUp34dyO9nB28SsMjBRiOzDg9hQrzdf1w N45Klb/dGeGWJvqiLgaTzPtEYUXIO6KpktELJTwYXRsqRMsVWgUDyGfPMT4Fer8+3O5D fvKh5ACw+qSn8i/p0JBcyuUQmpMU5BhiMBcFEyWDun97iE+xPY0QqdGhG8OXFvH3j6lV YEPAxuvG7PCqNbFnneJEF7bIXJGUXJwCXYaNbRdlD/oa6aVTQLGI9N8ODlAdSV2zK6bx IG7g== MIME-Version: 1.0 X-Received: by 10.229.170.194 with SMTP id e2mr249411qcz.48.1360268528452; Thu, 07 Feb 2013 12:22:08 -0800 (PST) Received: by 10.224.100.133 with HTTP; Thu, 7 Feb 2013 12:22:08 -0800 (PST) Date: Thu, 7 Feb 2013 13:22:08 -0700 Message-ID: Subject: Need advice on sys5 shm and zero copy sockets From: gary mazzaferro To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmkoFBPQG6qmIEHwyUELL/nDWLy/vcpbiEwWFc9CC/ZiCjCYRhzTQfYFPRaKR85kEfd1uVS X-Mailman-Approved-At: Thu, 07 Feb 2013 20:46:49 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2013 20:22:15 -0000 Hi, I was told to post this question here (Ken Merry), it would be a good place to get some help. I'm not sure this is doable without a kernel module, which I don't want to add. I'll explain what I'm attempting.. I'm designing a high speed rest motor for cloud execution environment. 1) I'd like to eliminate copy from the tcp stack to the application(s). 2) I'm also sharing the buffers across processes and jails. So I'd like to preserve the zero-copy in a msg pipe/unix socket 3) Some buffers will go to disk file systems. Wish list: 4) I'd like it to work with sctp because I like it for local networking :) 5) I'd like to provision memory pools on a per application/connection/ip port basis. Ultimate Goal: 6) Additionally, I'm injecting "code" from a foreign process into the workflow of another process (state machine). The connection between them will be a signal and shared state information. I'm assuming item (6) is a separate issue, but it may impact the direction.. I've tried shm with zero copy sockets with linux and it just will not work !! BTW, I'm returning to freebsd after far too many years cheers, gary