Longhaul cpu frequency scaling leads to segmentation violation in userspace

From: Martin Peck
Date: Fri Sep 24 2004 - 12:54:56 EST


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,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/