Skip to contentSkip to conversation

Longhaul cpu frequency scaling leads to segmentation violation in userspace

DISCUSSION Martin Peck 1 participant 1 message Sep 24, 2004

lore
Share & tools
lore
#0 lore raw

I have encountered a strange scenario using 2.6.8.1 on a VIA C5P mini-itx system when Longhaul CPU frequency scaling is enabled.

When filling a buffer with entropy via xstore in kernel space a tight loop can be performed without any problems.

If the xstore is invoked in the same iterative manner in user space for a sufficient number of iterations (~ 120 or more) the application is terminated due to a segmentation violation.

Adding a short delay between iterations or turning off CPU frequency scaling resolves the problem.

Is there something associated with CPU frequency scaling and processor intensive operations in user space that leads to unexpected timeslice overrun (or any other side effect) causing a segmentation violation?

This behavior is very strange; any insight would be appreciated.

Regards,