A technique is presented which is included in an operating system to determine the working set of interactive users in such fashion that the working set is close to the 'theoretical working set', i. e. , those pages that are actually referenced in a 'very small' interval. The interval is to be selected in such a way that if interactive transactions are sorted by length, then 80-90 percent of such transactions actually completes in the interval selected. The working set determined should not be affected by system load or interactions. If the working set is determined in such fashion, spurious paging is avoided, and interactive user response time improves.