Hi!
Please keep in mind that sulfatrim is same strength than adult septrin and double the strength that pediatric septrin. The standard dosage for a 1 kg piggy is about 0.25 ml.
However, if you are dealing with a persistently recurring cystitis that won't go away, you are more likely dealing with a sterile (i.e. non-bacterial) interstitial (recurring) cystitis rather than a bacterial cystitis. With a sterile cystitis, antibiotics can temporarily suppress the symptoms of a milder one but they cannot cure it. Sterile IC cannot be healed, only managed until it is going away on its own - which is usually more in the matter of years than months or even never.
Sterile cavy cystitis is not much known outside vet circles that see a lot of piggies but it has become increasingly common over the last decade; in fact, most cases of urinary tract infections we are contacted over turn out to be sterile IC, which seems to affect particularly the natural glucosamine lining of the urinary tract, which prevents the very corrosive urine from coming into contact with raw tissue. Since symptoms of all urinary tract issues are rather similar, most diagnoses of sterile IC happen by default after any other potential problem has been ruled out.
Treatment is with glucosamine (either oral in mild cases or via injection (cartrofen) in more severe cases); acute flares every few weeks/months are managed with upping the steady metacam maintenance dose. It will take a few weeks for the glucosamine to build up so it is not a quick fix. This approach follows the treatment of FSC (feline sterile cystitis), which is the other species that presents with a similar problem. Your vet may need to do some research digging on it if they have never come across it.
The good thing is that it is not a life-shortening illness (unless in the most severe cases, which you are not dealing with) and that it doesn't cause bladder stones.
Some more information:
Links - Interstitial Cystitis - Guinea Lynx Records
Long Term Balanced General And Special Needs Guinea Pig Diets (see chapter special diets)
I hope that this hels you?