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 7813943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:02:29+00:00 2026-06-02T05:02:29+00:00

In my server process, it looks like this: Main backend processes: Processes Huge list

  • 0

In my server process, it looks like this:

Main backend processes:

  1. Processes Huge list of files and , record them inside MySQL.

  2. On every 500 files done, it writes “Progress Report” to a separate file /var/run/progress.log like this “200/5000 files done”

  3. It is multi-processed with 4 children, each made sure to run on a separate file.

Web server process:

  1. Read the output of /var/run/progress.log every 10 seconds via Ajax and report to progress bar.

When processing a very large list of files (e.g. over 3 GB archive), the processes lock up after about 2 hours of processing.

I can’t find what is going on. Does that mean that /var/run/progress.log caused an I/O deadlock?

  • 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-06-02T05:02:31+00:00Added an answer on June 2, 2026 at 5:02 am

    In python on Linux this should not block, however try using the os module

    os.open(file, os.O_NONBLOCK | os.O_RDONLY)
    

    and make sure you close the file fh.close() as Python is a bit lazy clean up files.

    http://docs.python.org/library/os.html

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

Sidebar

Related Questions

On SQL Server 2005, I have a complex multi-level allocation process which looks like
I have an Upstart script for my server that looks like this: description myapp
As I know the email message sending process looks like this: The message is
My user authorization process looks like that. During signin process function fires following code.
I'm playing Windows Media audio, triggered by an ASX meta-file which looks like this:
Update: looks like this is indeed a WiX limitation - Cannot add 64bit com+
My Emacs frame looks like this: +---------------------------+ | | | | | | |
My program basically looks like this: using(XmlReader reader = XmlReader.Create(File.Open(path, FileMode.Open, FileAccess.Reader, FileShare.Read)) {
Some APIs, like the WebClient, use the Event-based Async pattern . While this looks
I have something that looks like this: my $report = new ReportGenerator; #custom object

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.