All,

                I am trying to port the Apache daffodil libraries onto an cross 
domain guard that runs in a very small form factor.

                We have cross compiled OpenJDK 12 for the aarch64 (ARM 
processor) and loaded into memory.
                I have built the source using sbt (sbt daffodil-cli/stage) and 
loaded the necessary jars into memory on the board.

                Here are some of the specifics of the hardware platform running 
on this guard:

*         2 GB DDR RAM

o   Memory Management Unit (MMU) Page Tables used in this system are one-to-one 
mapping.

*         ARM Cortex A53 4 Core Processor

Here are some the specifics for the software components

*         SELinux

*         Busybox

Here is some of the performance numbers we are seeing from the performance 
testing:

                NOTE:  These tests were run using the attached csv file and the 
attached schema


# ./daffodil performance -s demo/csv.dfdl.xsd -N 100 -t 5 demo/test_file.csv
total parse time (sec): 2.443824

*         What does the total parse time value mean ?

*         How is it calculated ?

*         Is this poor performance?
min rate (files/sec): 1.535568

*         What is the min rate (files/sec)  What does this mean ?
max rate (files/sec): 29.460340

*         What is the max rate (files/sec)  What does this mean ?
avg rate (files/sec): 40.919485

*         What is the avg rate (files/sec)  What does this mean ?


*         Do you have any suggestions how to improve parse/unparsed speed on an 
ARM processor?



*         Any suggestions are greatly appreciated!



# ./daffodil performance -s demo/csv.dfdl.xsd -N 200 -t 5 demo/test_file.csv
total parse time (sec): 3.175893
min rate (files/sec): 1.520884
max rate (files/sec): 107.223428
avg rate (files/sec): 62.974409

# ./daffodil performance -s demo/csv.dfdl.xsd -N 300 -t 5 demo/test_file.csv
total parse time (sec): 3.656587
min rate (files/sec): 1.551273
max rate (files/sec): 180.155186
avg rate (files/sec): 82.043712


# ./daffodil performance -s demo/csv.dfdl.xsd -N 1000 -t 5 demo/test_file.csv
total parse time (sec): 5.602554
min rate (files/sec): 1.459977
max rate (files/sec): 301.144046
avg rate (files/sec): 178.490026



Sincerely,

Rob Rose
Sr. Principal Software Engineer
General Dynamics Mission Systems
Office: 508-880-1866
Cell:      508-341-5216

This message and/or attachments may include information subject to GD Corporate 
Policies 07-103 and 07-105 and is intended to be accessed only by authorized 
recipients.  Use, storage and transmission are governed by General Dynamics and 
its policies. Contractual restrictions apply to third parties.  Recipients 
should refer to the policies or contract to determine proper handling.  
Unauthorized review, use, disclosure or distribution is prohibited.  If you are 
not an intended recipient, please contact the sender and destroy all copies of 
the original message.

<?xml version="1.0" encoding="UTF-8"?> 

<!-- 
Copyright (c) 2012-2019 Tresys Technology, LLC. All rights reserved.

Developed by: Tresys Technology, LLC
              http://www.tresys.com

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

 1. Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimers.

 2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimers in the
    documentation and/or other materials provided with the distribution.

 3. Neither the names of Tresys Technology, nor the names of its contributors
    may be used to endorse or promote products derived from this Software
    without specific prior written permission.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
SOFTWARE.
 -->

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:fn="http://www.w3.org/2005/xpath-functions";
  xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/"; xmlns:ex="http://example.com";
  targetNamespace="http://example.com"; elementFormDefault="unqualified">

  <xs:include schemaLocation="org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd" />

  <xs:annotation>
    <xs:appinfo source="http://www.ogf.org/dfdl/";>
      <dfdl:format ref="ex:GeneralFormatPortable" separator="" initiator=""
        terminator="" textTrimKind="none" initiatedContent="no" ignoreCase="no"
        separatorPosition="infix" occursCountKind="implicit"
        emptyValueDelimiterPolicy="both" representation="text" textNumberRep="standard"
        lengthKind="delimited" encoding="ASCII" encodingErrorPolicy="error" />
    </xs:appinfo>
  </xs:annotation>

  <xs:element name="file">
    <xs:complexType>
      <xs:sequence dfdl:separator="%NL;" dfdl:separatorPosition="postfix">
        <xs:element name="header" minOccurs="0" maxOccurs="1"
          dfdl:occursCountKind="implicit">
          <xs:complexType>
            <xs:sequence dfdl:separator=",">
              <xs:element name="title" type="xs:string" maxOccurs="unbounded" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="record" maxOccurs="unbounded">
          <xs:complexType>
            <xs:sequence dfdl:separator=",">
              <xs:element name="item" type="xs:string" maxOccurs="unbounded"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

</xs:schema>

Reply via email to