We run through the logfile (from the beginning or the last checkpoint) and add all transactions for which we encounter Begin Transaction entries to the TT.
From the DPT we can compute the minimal Sequence Number of a dirty page.