gramineproject / examples

Sample applications configs for Gramine
BSD 3-Clause "New" or "Revised" License
29 stars 22 forks source link

R particularly slow #74

Closed reclock closed 11 months ago

reclock commented 11 months ago

为什么R语言速度特别慢 Why is the speed of R language particularly slow

kailun-qin commented 11 months ago

Thanks for the question!

Why is the speed of R language particularly slow

Could you pls kindly elaborate on what do you mean by "speed" and how "slow" it is (perhaps by sharing your context and stats w/ us)?

I tested scripts/R-benchmark-25.R on my setup w/ both gramine-sgx (latest master, specifically commit 4de6aa5) and native, however I didn't see unreasonable perf overhead from the benchmark results.

reclock commented 11 months ago

How can I execute the interactive interface of the R command in the sgx environment

dimakuv commented 11 months ago

How can I execute the interactive interface of the R command in the sgx environment

Why would you need to do that? SGX is not intended for interactive sessions.

reclock commented 11 months ago

How can I execute the interactive interface of the R command in the sgx environment

Why would you need to do that? SGX is not intended for interactive sessions.

Well, yes, it's just for side use and there's not much demand at the moment

reclock commented 11 months ago

R command support, is Rscript command supported? I modified the template file, but Rscript failed to execute the script and there was no result output

dimakuv commented 11 months ago

@reclock Please be more specific in your questions.

We haven't played with R for quite some time. We haven't tried any advanced usages (afaik), so maybe Rscript doesn't work indeed in Gramine.

What are the exact commands that fail? How exactly they fail? What is the version of Gramine you're using? What is your manifest file you're using? What do you see in the Gramine trace log?

mkow commented 11 months ago

@reclock: please don't use GitHub issues for general support, we use issues to keep track of bugs in Gramine. If you need support then either:

Also: