This script compares memory usage between default and optimized bucket
configurations, showing the improvement in terms of reduced memory waste.
It also generates visualization data for easy comparison.
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
This commit adds:
1. Comprehensive README.md with stack components and running instructions
2. Software Bill of Materials (SBOM) in table format
3. Detailed visualization documentation
4. Directory structure and algorithm description
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
This script tests the memory bucket optimizer with different TLS operations:
- TLS 1.2 and TLS 1.3 connections
- Different server configurations (Google, Cloudflare)
- Session resumption
- Non-blocking mode
The script generates a summary of the results showing the number of
allocations, unique sizes, largest bucket, and total waste for each test.
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
The TLS example now:
1. Shows example bucket configurations even when static memory is disabled
2. Better handles missing static memory functions
3. Improves error messages and instructions
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
This commit adds a tool to analyze memory allocation patterns from wolfSSL
operations and recommend optimal static memory bucket configurations to
minimize wasted memory. The tool includes:
- Memory bucket optimizer that analyzes allocation logs
- Example application demonstrating optimized bucket usage
- Visualization scripts using gnuplot
- Scripts to run optimization for different TLS operations
The tool helps users find optimal WOLFMEM_BUCKETS and WOLFMEM_DIST
configurations for their specific use cases.
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
- Remove autogen.sh and configure commands
- Fix path to ../../../../ for cmake
- Remove redundant build dir creation
- Add sudo make install for wolfSSL
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
This example demonstrates a full-stack embedded networking application using:
- FreeRTOS (POSIX port) for RTOS simulation
- wolfIP for zero-allocation networking
- wolfSSL for TLS 1.3 security
Features:
- Virtual networking through TAP interface
- HTTPS server with TLS 1.3
- UDP echo server for testing
- Comprehensive test scripts
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>