This phase I trial is studying the side effects and best dose of temsirolimus in treating patients with metastatic solid tumor or lymphoma that cannot be removed by surgery who have different levels of liver function. Temsirolimus may stop the growth of cancer cells by blocking some of the enzymes needed for cell growth. Temsirolimus may have different effects in patients who have changes in their liver function