NCA is present and not enabled by default.  But you can only use it in the 
global zone.  It predates zones and ZFS.  Probably you don't need it or want it 
anymore.  

Indeed I am planning to remove it at a future date as I don't believe it is in 
use by illumos or SmartOS users and I don't think it's useful anymore. 

Sent from my iPhone

> On Sep 22, 2014, at 5:56 AM, G B via smartos-discuss 
> <[email protected]> wrote:
> 
> While reading the dated (Nov 2004) "FireEngine—A New Networking Architecture 
> for the
> Solaris™ Operating System" by Sunay Tripathi, I came across this sentence:  
> "Solaris NCA technology is being merged into FireEngine development, with 
> partial integration in phase one and full integration by phase two."
> 
> So my trials of trying to get NCA working in Zones was a wasted effort - 
> verified by Garrett D'Amore -  since the three phases of FireEngine 
> development for Solaris 10 were completed long ago.  
> 
> I assume NCA is integrated now into the kernel by default to cache content 
> for a web server?
> 
> 
> On Sunday, September 21, 2014 10:40 PM, Robert Mustacchi via smartos-discuss 
> <[email protected]> wrote:
> 
> 
> On 09/21/2014 03:51 PM, G B via smartos-discuss wrote:
> > 
> > 
> > For my LD_PRELOAD it is now set to /usr/lib/amd64/ncad_addr.so
> > 
> > and 
> > 
> > # pldd `pgrep http`|grep ncad
> > /usr/lib/amd64/ncad_addr.so.1
> > /usr/lib/amd64/ncad_addr.so.1
> > /usr/lib/amd64/ncad_addr.so.1
> > /usr/lib/amd64/ncad_addr.so.1
> > /usr/lib/amd64/ncad_addr.so.1
> > /usr/lib/amd64/ncad_addr.so.1
> > 
> > but
> > # pfiles `pgrep http`|grep AF
> >      sockname: AF_INET 192.168.1.22  port:80
> >      sockname: AF_INET 192.168.1.22  port:80
> >      sockname: AF_INET 192.168.1.22  port:80
> >      sockname: AF_INET 192.168.1.22  port:80
> >      sockname: AF_INET 192.168.1.22  port:80
> >      sockname: AF_INET 192.168.1.22  port:80
> > 
> > I'm running 3 domains now and adding a couple more, each in their own 
> > zones; plus currently running a mail server in a kvm; and a reverse proxy 
> > in a zone..  Am thinking of adding an SDD drive and was hoping NCA would 
> > work.
> > 
> > Not sure if nca is really running or not.  I'm running apache-2.4.9nb3.  Is 
> > there a better way to check and see if it is actually working correctly?
> 
> I'm fairly certain that NCA doesn't work inside of a zone as Garrett
> mentioned. However, I suspect that using the memory that would have been
> used by NCA instead as extra memory for the ARC will end up working just
> as well.
> 
> As for adding an SSD, I think it all depends on what you want that SSD
> to do and what the characteristics of the SSD itself are.
> 
> Robert
> 
> > On Sunday, September 21, 2014 5:45 PM, G B <[email protected]> wrote:
> >  
> > 
> > 
> > For my LD_PRELOAD it is now set to /usr/lib/amd64/ncad_addr.so
> > 
> > and 
> > 
> > # pldd `pgrep http`|grep ncad
> > /usr/lib/amd64/ncad_addr.so.1
> > /usr/lib/amd64/ncad_addr.so.1
> > /usr/lib/amd64/ncad_addr.so.1
> > /usr/lib/amd64/ncad_addr.so.1
> > 
> > 
> > On Sunday, September 21, 2014 5:29 PM, Robert Mustacchi via smartos-discuss 
> > <[email protected]> wrote:
> >  
> > 
> > 
> > On 09/21/2014 03:21 PM, G B wrote:
> >> Using:
> >> # truss -ff -t accept,listen,bind /opt/local/sbin/apachectl start
> >> ld.so.1: httpd: fatal: /usr/lib/ncad_addr.so: wrong ELF class: ELFCLASS32
> >> 6714: 
> >      Received signal #18, SIGCLD, in waitid() [caught]
> >> 6714:          signfo: SIGCLD CLD_KILLED pid=6715 status=0x0009
> >> /opt/local/sbin/apachectl: line 88: 6715: Killed
> >> ld.so.1: httpd: fatal: /usr/lib/ncad_addr.so: wrong ELF class: ELFCLASS32
> >> 6714:      Received signal #18, SIGCLD, in waitid() [caught]
> >> 6714:          signfo: SIGCLD CLD_KILLED pid=6715 status=0x0009
> >> /opt/local/sbin/apachectl: line 92: 6715: Killed
> >>
> >> Line 88 is where I inserted:
> >> LD_PRELOAD=/usr/lib/ncad_addr.so /opt/local/sbin/httpd
> >>
> >> Do you think it may work with a 32-bit image instead of a 64-bit image 
> >> (base64 14.2.0)?
> > 
> > If you have a 64-bit image then you'll need to preload a 64-bit library
> > which can be found at /usr/lib/amd64/ncad_addr.so. Though I'm not
> > familiar enough with the sockfs module to know that it functions in the NGZ.
> > 
> > Robert
> > 
> >> On Sunday, September 21, 2014 3:09 PM, Robert Mustacchi via 
> >> smartos-discuss <[email protected]> wrote:
> >>  
> >>
> >>
> >> On 09/21/2014 12:58 PM, G B via smartos-discuss wrote:
> >>> Set the relevant lines to "enabled" in:
> >>>
> >>> /etc/nca/ncakmod.conf
> >>>
> >>> /etc/nca/ncalogd.conf
> >>>
> >>> Set the interface to "net0":
> >>> /etc/nca/nca.if
> >>>
> >>> Added to /opt/local/sbin/apachectl:
> >>> # Enable NCA:
> >>> NCAKMODCONF=/etc/nca/ncakmod.conf
> >>> if [ -f $NCAKMODCONF ]; then
> >>> . $NCAKMODCONF
> >>> if [ "x$status" = "xenabled" ]; then
> >>> HTTPD=”env LD_PRELOAD=/usr/lib/ncad_addr.so $HTTPD”
> >>> fi
> >>> fi 
> >>>
> >>> # pfiles `pgrep httpd`|grep AF  <----- shows AF_INET and not AF_NCA
> >>> # pldd `pgrep http` |grep ncad <------ does not return ncad
> >>>
> >>>
> >>> Rebooted and apache is online, so what is needed to get NCA working in a 
> >>> SmartOS Zone?
> >>
> >> From a brief look, it appears that NCA looks at the GZ configuration.
> >> I'm not sure if it works in a non-global zone at all.
> >>
> >> Robert
> >>
> >>
> >> -------------------------------------------
> >> smartos-discuss
> >> Archives: https://www.listbox.com/member/archive/184463/=now
> >> RSS Feed: 
> >> https://www.listbox.com/member/archive/rss/184463/24559458-54d8e931
> >>
> >> Modify Your Subscription: https://www.listbox.com/member/?&;
> >> Powered by Listbox: http://www.listbox.com
> > 
> >>
> > 
> > 
> > 
> > -------------------------------------------
> > smartos-discuss
> > Archives: https://www.listbox.com/member/archive/184463/=now
> > RSS Feed: 
> > https://www.listbox.com/member/archive/rss/184463/24559458-54d8e931
> > Modify Your Subscription: https://www.listbox.com/member/?&;
> > Powered by Listbox: http://www.listbox.com
> > 
> > 
> > -------------------------------------------
> > smartos-discuss
> > Archives: https://www.listbox.com/member/archive/184463/=now
> > RSS Feed: 
> > https://www.listbox.com/member/archive/rss/184463/21483261-4b78dd38
> 
> > Modify Your Subscription: https://www.listbox.com/member/?&;
> > Powered by Listbox: http://www.listbox.com
> > 
> 
> 
> 
> -------------------------------------------
> smartos-discuss
> Archives: https://www.listbox.com/member/archive/184463/=now
> RSS Feed: https://www.listbox.com/member/archive/rss/184463/24559458-54d8e931
> Modify Your Subscription: https://www.listbox.com/member/?&;
> Powered by Listbox: http://www.listbox.com
> 
> 
> smartos-discuss | Archives  | Modify  Your Subscription        



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to