Skip to content

Add KB entry 045: parallel induced-sorting suffix array construction (libsais) - #30

Open
HenningWoydt wants to merge 1 commit into
CHSZLab:mainfrom
HenningWoydt:kb-045-libsais
Open

HenningWoydt wants to merge 1 commit into
CHSZLab:mainfrom
HenningWoydt:kb-045-libsais

Conversation

@HenningWoydt

Copy link
Copy Markdown

Adds knowledge-base entry 045 and its row in INDEX.md.

Problem: speeding up libsais (SA-IS, 32-bit suffix arrays) on 100 MB texts in serial and 8-thread mode with byte-identical output and at most +1% peak memory.

Result: score 0.832 over 30 experiments (8 threads about 0.73 of the original, serial about 0.96).

Key techniques: splitting the serial bucket step of block-parallel induced sorting by symbol ownership (monotone bucket pointers make the in-block candidates one symbol interval), pipelining the next block's gather with the serial sort, dynamic scheduling of the first phase while idle cores ramp up, removing serial steps between parallel phases, and transparent huge pages via MADV_COLLAPSE for serial runs. Also lists dead ends and a stale control-build pitfall in --control-rev harnesses.

Numbering: 041-044 are claimed by open PRs #23-#29, so this uses 045.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant