The Machinist (2004)

Directed by Brad Anderson. With Christian Bale, Jennifer Jason Leigh, Aitana Sánchez-Gijón, John Sharian. An industrial worker who hasn't slept in a year begins to doubt his own sanity.