Has anyone here been through a RIF?

How did it work? Did it follow from the budget or was it chosen by OPM? Was it implemented by your agency or top-down through OPM? Did the agency have discretion about how many positions were RIFfed? Or over who was laid off? How many folks were laid off?