At lunch, Sri Lanka were 395 for six with wicketkeeper Dickwella unbeaten on 63 - scored off 103 balls with one six and seven fours - and Dilruwan Perera on nine not out.

South Africa's only success of the morning was the wicket of Jayawardene, who had passed the 150 mark for the 16th time in his career before he was run out.

It was the only way South Africa looked like separating the sixth wicket pair, who put on exactly 100 runs.

Jayawardene swept JP Duminy to fine leg and Alviro Petersen's direct throw at the stumps saw the diving batsman well short of his ground.

His 165 came off 284 balls with one six and 17 fours.

South Africa unnecessarily lost a review when they appealed for a catch against Dickwella at 44 which the umpire ruled not out.

The batsman was hit on the chest by a short ball from Morne Morkel and AB de Villiers held it at second slip.

Dickwella, who replaced Dinesh Chandimal behind the wicket for this test, went on to reach his fifty with an on-drive off Morkel for three.

South Africa desperately sought a breakthrough with the second new ball when play resumed with Sri Lanka at 305-5.

They tried everything with their three pace bowlers Dale Steyn, Morkel and Vernon Philander in the first hour but Jayawardene and Dickwella survived.

Latest News from Sports News Desk