Hope this helps!
When I was younger I rarely, if ever cramped! However, earlier this year I was having a cramping problem after the first 1.5 or 2 hours of a race. I was eating the bananas, and drinking water but I was very close to my anaerobic threshold throughout. Once I got fitter later...