For more than three months, as turmoil in the credit market has swept wildly through Wall Street, one mighty investment bank after another has been brought to its knees, leveled by multibillion-dollar blows to their bottom lines.

And then there is Goldman Sachs.

Rarely on Wall Street, where money travels in herds, has one firm gotten it so right when nearly everyone else was getting it so wrong. So far, three banking chief executives have been forced to resign after the debacle, and the pay for nearly all the survivors is expected to be cut deeply.

But for Goldman’s chief executive, Lloyd C. Blankfein, this is turning out to be a very good year. He will surely earn more than the $54.3 million he made last year. If he gets a 20 percent raise — in line with the growth of Goldman’s compensation pool — he will take home at least $65 million. Some expect his pay, which is directly tied to the firm’s performance, to climb as high as $75 million.

Goldman’s good fortune cannot be explained by luck alone. Late last year, as the markets roared along, David A. Viniar, Goldman’s chief financial officer, called a “mortgage risk” meeting in his meticulous 30th-floor office in Lower Manhattan.