Commit Graph

6 Commits (576fa7c13aa20fe7b34cfad0d0c2b49d61339208)

Author SHA1 Message Date
Devin AI 576fa7c13a Add visualization scripts and update documentation
Co-Authored-By: jacob@wolfssl.com <jacob@wolfssl.com>
2025-03-04 01:52:38 +00:00
Devin AI 2e993c42b4 Add memory usage comparison script
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>
2025-03-04 01:19:36 +00:00
Devin AI 9fcc577479 Update documentation with SBOM and detailed instructions
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>
2025-03-04 01:13:23 +00:00
Devin AI 405fc99e83 Add test script for different TLS operations
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>
2025-03-04 01:13:06 +00:00
Devin AI c7a8831708 Update TLS example to better handle missing static memory support
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>
2025-03-04 01:07:30 +00:00
Devin AI 592e088800 Add memory bucket optimizer tool
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>
2025-03-04 01:04:54 +00:00