I'm building a 5V regulator for a PCB, and I was reading through the datasheet/wikipedia to make sure I was doing it right.
http://www.ti.com/lit/ds/symlink/lm2592hv.pdf
What baffles me is that the regulator switches at 150kHz. Yet most sources I've found online say the Self-Resonant frequency of your average electrolytic cap is below 100kHz.
In the circuit on pg8 of the datasheet, there's a 220uF electrolytic cap. Assuming 2nH (low estimate) is a reasonable series inductance (is it?), then the highest possible resonant frequency should be
\$ f_c = \Large{\frac{1}{2\pi\sqrt{220e^{-6}*2e^{-9}}}} = \small240kHz \$
So at 150kHz the cap should barely be working as a cap. How does this even work? Why is it OK?
EDIT:Thanks to Madmanguruman.
I did some simulations of the circuit to figure out what exactly was going on. I modeled the switch/diode as a 12V square wave with duty cycle 5/12=0.417, and with a load of 5 Ohms (for a 1A current). The output capacitor is 220uF, the inductor is 33uH. First I made a Bode Plot:

The bottom circuit is using an ideal capacitor (no ESL/ESR). It's basically a low-pass filter with a resonance at 11k radians (1.8kHz). The top circuit is with an ESR of 100mOhms, ESL 20nH. The ESR smooths things out at the resonant frequency. The ESL (self-resonant at about 75kHz) causes the response to flatten out at around 75kHz, and reduces the attenuation from -40dB/decade to -20db/decade.
And then I simulated it with SPICE

The top trace shows the ideal capacitor. Simulated over 3ms, it rings at the resonant frequency of the filter (1.8kHz)
The second trace shows the capacitor with parasitic effects included. It flattens out after a couple milliseconds, although in the first millisecond the voltage shoots up to 9V, and the current (not shown) peaks at 12A, which might be a good reason to include some overvoltage protections.
The third trace shows the output voltage oscillating at around 5V (also the voltage across the capacitor). The fourth trace is the instantaneous voltage across the series inductance. The fifth trace is the current through the capacitor.
So at these frequencies, the capacitor is indeed almost self-resonant. The impedance across it is almost entirely ESR (100mOhms). The impedance of the ideal capacitor part is 5mOhms; the impedance of the series inductance is 2mOhms (both negligible). But it still drinks up all the oscillatory current, because it is 0.1Ohms in parallel with a 5Ohm load. This is exactly what the cap is intended to do.
The fourth trace illustrates the effect of the series inductance. across it is a mere 7mV.The capacitor impedance contributes something similar. Out of 60mV ripple, this is nothing -- but if the frequency were higher, then the overall impedance of the non-ideal capacitor would be higher due to the parasitic inductance. You're fine until the impedance of the capacitor becomes a significant portion of the load -- when that happens you get a large oscillatory current through the load, and that's bad.
This also illustrates the reason why the ESR is such an important parameter. If it's too low, then you don't damp out ringing of the LC circuit and your circuit has stability issues. But the higher it is, the more oscillations you'll get on your steady state voltage.
