Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7700271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:40:11+00:00 2026-05-31T22:40:11+00:00

I faced up with a strange scala-io moveTo method issue. Here is my filesystem,

  • 0

I faced up with a strange scala-io moveTo method issue. Here is my filesystem, tmp directory resides in ram.

~ % df -Th                                                               ~/ :)
Filesystem     Type      Size  Used Avail Use% Mounted on
rootfs         rootfs    112G   18G   89G  17% /
/dev           devtmpfs  3.9G     0  3.9G   0% /dev
run            tmpfs     3.9G  236K  3.9G   1% /run
/dev/sda       btrfs     112G   18G   89G  17% /
shm            tmpfs     3.9G  872K  3.9G   1% /dev/shm
tmpfs          tmpfs     3.9G   34M  3.9G   1% /tmp

When moving file from tmp to home directory or backwards, first it’s wery slow (subjectively about 1M/s, while iotop shows ridiculous 1500M/s), second it causes 100% cpu load. When moving files within same filesystem, everything works as expected.

Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_03).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import scalax.file.Path
import scalax.file.Path

scala> val tmp = Path("/tmp/ensime")
tmp: scalax.file.Path = Path(/tmp/ensime)

scala> tmp.exists
res0: Boolean = true

scala> val home = Path("/home/_4e6/dest")
home: scalax.file.Path = Path(/home/_4e6/dest)

scala> home.exists
res1: Boolean = false

scala> tmp.moveTo(home)  // very slow
res2: scalax.file.Path = Path(/home/_4e6/dest)

scala> home.moveTo(tmp)  // a bit faster but still unsatisfactory
res3: scalax.file.Path = Path(/tmp/ensime)

In addition, copyTo method works fine; replace and atomicMove flags doesn’t change anything; and ramfs is not working for me.

scala> val fs = scalax.file.ramfs.RamFileSystem()
fs: scalax.file.ramfs.RamFileSystem = Ram File System

scala> val ramTmp = fs("/tmp/ensime")
ramTmp: scalax.file.Path = RamPath(/tmp/ensime)

scala> ramTmp.exists
res9: Boolean = false
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:40:12+00:00Added an answer on May 31, 2026 at 10:40 pm

    Turned out, it was an issue with moveTo implementation. Now it’s fixed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I faced a strange issue when I am decrypting a zip stream. After I
I have faced a very strange situation here. I am accessing database (MDB) through
We faced a very strange issue (really strange for such mature product): how to
I've faced a strange issue with session across subdomain only for google chrome. I
I'm using JBossCache 'Malagueta' 3.2.0.GA I faced with strange issue in production environment, sometimes
During bug fixing in very old project I've faced with strange method, it looks
We were faced with very strange issue that made us crazy. Sometimes newly created
We've faced strange problem. We have log on service, that authenticates user, adds auth
Today I faced a strange problem in C#. I have an ASP.NET page where
I've faced a bit strange problem. There is a site client would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.