Doomed to Wordpress

Serious Reflections During the Life of Jeremy Fisher

   

Subscribe
Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

Flavours
There's more than one way to view this weblog; try these flavours on for size.

  • index
  • circa 1993
  • RSS
  • Links
    These are a few links to my other sites.

  • Ставропигиальныя Пластинки
  • Анкылым
  • Русское Шрифтовое Зало
  • Gopher (Proxied)
  • More about Gopher
  •        

    2020/11/14 32 vs 64 bit

    На одной машине:

    $ uname -a
    FreeBSD zayats 11.4-RELEASE-p3 FreeBSD 11.4-RELEASE-p3 #0: Tue Sep  1 07:47:00 UTC 2020     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
    
    $ perl -v
    
    This is perl 5, version 24, subversion 4 (v5.24.4) built for i386-freebsd
    (with 1 registered patch, see perl -V for more detail)
    
    $ perl -V | fgrep size
        intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234, doublekind=3
        d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12, longdblkind=3
        ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    
    $ ./script/gt_fastcgi.pl -l /tmp/gt.socket -n 2 -p /tmp/gt.pid --daemon &
    
    $ ps auxww | fgrep fcgi
    rp     8784   0,0 25,4 135028 125480  —  Is   23:04           0:00,16 perl-fcgi-pm [GT] (perl)
    rp     8785   0,0 25,4 135028 125480  —  I    23:04           0:00,01 perl-fcgi (perl)
    rp     8786   0,0 25,4 135028 125480  —  I    23:04           0:00,01 perl-fcgi (perl)
    rp     8790   0,0  0,3   6372   1488  1  S+   23:06           0:00,02 fgrep fcgi
    
    $ fgrep memory /var/run/dmesg.boot
    real memory  = 536870912 (512 MB)
    avail memory = 493191168 (470 MB)
    

    На другой:

    $ uname -a
    FreeBSD my.host.name.ru 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC  amd64
    
    $ perl -v
    
    This is perl 5, version 24, subversion 4 (v5.24.4) built for amd64-freebsd
    (with 1 registered patch, see perl -V for more detail)
    
    $ perl -V | fgrep size
        intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
        d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
        ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    
    $ ./script/gt_fastcgi.pl -l /tmp/gt.socket -n 2 -p /tmp/gt.pid --daemon &
    
    $ ps auxww | fgrep fcgi
    gt    75231  0,0 11,0 241468 225924  —  Is   23:10             0:00,08 perl-fcgi-pm [GT] (perl)
    gt    75232  0,0 11,0 241468 225920  —  I    23:10             0:00,00 perl-fcgi (perl)
    gt    75233  0,0 11,0 241468 225924  —  I    23:10             0:00,00 perl-fcgi (perl)
    gt    75235  0,0  0,0    524    336  0  R+   23:10             0:00,00 fgrep fcgi
    
    $ fgrep memory /var/run/dmesg.boot
    real memory  = 2147483648 (2048 MB)
    avail memory = 2043199488 (1948 MB)
    

    Всё, что̀ нужно знать о "преимуществах" 64-битной архитектуры.

    Та же проблема и возможное решение: https://gundersen.net/32bit-jail-on-64bit-freebsd/. И ещё: http://en.jnlin.org/2008/06/07/12/">http://web.archive.org/web/20180216222136/http://en.jnlin.org/2008/06/07/12/. А вот как расшарить дерево портов между jail'ами: https://forums.freebsd.org/threads/sharing-ports-directory-with-jails.18421/.

    #freebsd #jail

    permanent link