3 Replies Latest reply: Aug 21, 2013 1:14 PM by user12616213 RSS

    vdbench in zones

    user12616213

      I have created some zones with mounted file systems using ufs and /dev/dsk/  such that in the zone the filesystem is reflected as:  /data0  where in the Global zone that is mounting /dev/rdsk/c0t0d0s0.

      Now I'm hoping to use vdbench similar to the example7 param-file, but when I go to execute in the zone I get....

       

      [D:]116> ./vdbench -f peters-param

      ld.so.1: cam: fatal: libX11.so.4: open failed: No such file or directory Killed

       

      Thoughts on how this might work?    In my Global zone this works fine against the similarly mount filesystem.  Still looking...

        • 1. Re: vdbench in zones
          Henk Vandenbergh-Oracle

          It appears to me that java thinks it needs to load X11 support for Vdbench. Vdbench should not have any need for that; I have not heard of any problems like that here using zones. Try to add '-Djava.awt.headless=true' in the vdbench script, e.g.

           

          if ("$1" == "SlaveJvm") then

            $java -client -Xmx1024m -Xms128m -cp $cp Vdb.SlaveJvm $*

            exit $status

          else

            $java -Djava.awt.headless=true -client -Xmx512m  -Xms64m  -cp $cp Vdb.Vdbmain $*

            exit $status

          endif

           

          Henk.

          • 2. Re: vdbench in zones
            user12616213

            I tried that, and received the same message.

             

            I took another approach to run

            pkg install x11/library/libx11

            in the zone, which installed just fine, but now when I execute I get...

             

            [D:]54> ./vdbench -f peters-param

            -client: illegal argument

            Usage: java [-options] class

             

            where options include:

                -help             print out this message

                -version          print out the build version

                -v -verbose       turn on verbose mode

                -debug            enable remote JAVA debugging

                -noasyncgc        don't allow asynchronous gc's

                -verbosegc        print a message when GCs occur

                -cs -checksource  check if source is newer when loading classes

                -ss<number>       set the C stack size of a process

                -oss<number>      set the JAVA stack size of a process

                -ms<number>       set the initial Java heap size

                -mx<number>       set the maximum Java heap size

                -D<name>=<value>  set a system property

                -classpath <directories separated by colons>

                                  list directories in which to look for classes

                -prof             output profiling data to ./java.prof

                -verify           verify all classes when read in

                -verifyremote     verify classes read in over the network [default]

                -noverify         do not verify any class

             

            Here is my param file....

            [D:]60> cat peters-param

             

            *Example 7: File system testing

             

            fsd=fsd1,anchor=/data1,depth=2,width=2,files=2,size=128k

             

            fwd=fwd1,fsd=fsd1,operation=read,xfersize=4k,fileio=sequential,fileselect=random,threads=2

             

            rd=rd1,fwd=fwd1,fwdrate=100,format=yes,elapsed=10,interval=1

             

             

            kit-ldom02:/vdbench

            [D:]61> df -hl

            Filesystem             Size   Used  Available Capacity  Mounted on

            rpool/ROOT/solaris      18G   594M        17G     4%    /

            /data0                 3.8G   114M       3.6G     3%    /data0

            /data1                 3.8G   3.8M       3.7G     1%    /data1

            /data3                 3.8G   4.9M       3.7G     1%    /data3

            /data4                 3.8G   4.9M       3.7G     1%    /data4

            /data5                 3.8G   4.9M       3.7G     1%    /data5

            /data6                 3.8G   4.9M       3.7G     1%    /data6

            /data7                 3.8G   4.9M       3.7G     1%    /data7

            /dev                     0K     0K         0K     0%    /dev

            rpool/ROOT/solaris/var

                                    18G   105M        17G     1%    /var

            proc                     0K     0K         0K     0%    /proc

            ctfs                     0K     0K         0K     0%    /system/contract

            mnttab                   0K     0K         0K     0%    /etc/mnttab

            objfs                    0K     0K         0K     0%    /system/object

            swap                   4.3G   496K       4.3G     1%    /system/volatile

            sharefs                  0K     0K         0K     0%    /etc/dfs/sharetab

            fd                       0K     0K         0K     0%    /dev/fd

            swap                   4.3G     0K       4.3G     0%    /tmp

            rpool/VARSHARE          18G    44K        17G     1%    /var/share

            rpool/export            18G    32K        17G     1%    /export

            rpool/export/home       18G    31K        17G     1%    /export/home

            rpool                   18G    31K        17G     1%    /rpool

            • 3. Re: vdbench in zones
              Henk Vandenbergh-Oracle

              What version of java (java-version) ?  I am always suspicious when there is some non-Oracle version of java.

               

              Also see the note in the vdbench script:

              # '-client' is an option for Oracle's Java. Remove if not needed.