Gentoo, gcc 4.1.1 and linode 100
For now, I added gcc 4.1.1 and glibc 2.4 to my package.mask, but I guess that eventually, other gentoo packages will require it.
3 Replies
But the best solution, I think, is to use distcc if you can devote the resources to it. Use at least one other system to pass off some of the compilation.
#!/usr/bin/ruby
###############
def io_status (token=nil)
hash = {}
File.open("/proc/io_status","r").each do |line|
line.split.each do |item|
key,value = item.split("=")
hash.update( { key=>value } )
end
end
return hash if not token
return hash[token]
end
print Time.new, " * ", io_status('io_tokens'), "\n"
system('killall -STOP cc1')
system('killall -STOP cc1plus')
system('killall -STOP xgcc')
while true
while io_status('io_tokens').to_i < 160000 ; sleep 6 ; end
print Time.new, " + ", io_status('io_tokens'), "\n"
system('killall -CONT cc1')
system('killall -CONT cc1plus')
system('killall -CONT xgcc')
while io_status('io_tokens').to_i > 80000 ; sleep 6 ; end
print Time.new, " - ", io_status('io_tokens'), "\n"
system('killall -STOP cc1')
system('killall -STOP cc1plus')
system('killall -STOP xgcc')
end